Giter Site home page Giter Site logo

gulp-iconfont-css-and-template's People

Contributors

flftfqwxf avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gulp-iconfont-css-and-template's Issues

hello~我想覆盖htmlTemplate对象中templatePath和templateTargetPath的路径需要怎么做?

这是我的配置文件
var fontName = 'ico';
gulp.task('iconfont', function(){
  gulp.src(['oursPlatform/stc/icon/*.svg'],{base:'oursPlatform/stc/'})
    .pipe(iconfontCssAndTemplate({ //replace iconfontCss
      fontName: fontName,
      cssClass: 'iw',
      cssTemplatePath: 'oursPlatform/stc/scssTpl/_icons.scss',
      cssTargetPath: '../../stc/base/_webico.scss',
      //templatePath: 'oursPlatform/stc/scssTpl/',
      //templateTargetPath: '../../stc/tpl/',
      htmlTemplate:{
            templatePath: './oursPlatform/stc/scssTpl/preview.html',
            //templateTargetPath: '../../stc/tpl/preview.html'
        },
      fontPath: '../fonts/'//webfont字体请求url
    }))
    .pipe(iconfont({
      fontName: fontName,
      formats: ['svg','ttf', 'eot', 'woff']
     }))
    .pipe(gulp.dest('oursPlatform/stc/fonts/'));
});

注释的这4行,我都试过了我尝试了直接写对象里的键值对,也试过直接写整个对象,虽然gulp iconfont方法启动能正常执行,但是htmlTemplate没有输出到指定路径下,请问该怎么做,需要修改index.js吗?还是我配置项的写法不对?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.