1.1.2 • Published 7 years ago

jade-inject-webpack-plugin v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

jade-inject-webpack-plugin

jade模板注入依赖插件

安装

$ npm i --save-dev jade-inject-webpack-plugin

使用方法

  new JadeInjectPlugin({
    indent:['spaces',2], //默认空格2, 其它选项: ['tab',1]
    filePath: name,      //模板文件路径
    output: name,        //输出目录
    inject: false,       //是否注入, 否则只是复制
    injectJs: ['commons',filename], //注入的JS文件列表,可以不带扩展名, 数组格式
    injectCss: [filename]   //注入的CSS文件列表,,可以不带扩展名, 数组格式
  })
  • indent 模板缩进的种类和数量,可选, 默认空格2 : 'spaces', 2
  • filePath 必选
  • output 必选

详见Demo

https://github.com/jackhutu/koa2-webpack-startkit

License

MIT

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago