1.0.1 • Published 4 years ago
choice-add-script-webpack v1.0.1
webpack插件,拓展html-webpack-plugin插件,在html-webpack-plugin处理html之前,写入需要引入的js文件
调用方法如下:
new ChoiceAddScipt({
paths: ["./demo.js"]
}),
API
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
options | 入参options对象 | object | |
-paths | 需要加入的js文件路径组成的数据,数组长度为添加script标签的个数 | string[] |