webpack-insert-scripts-plugin
v0.0.1
Published
A webpack plugin for users to insert scripts into index.HTML automatically
Downloads
2
Readme
A webpack plugin for users to insert scripts into index.HTML automatically
Install
npm i -D webpack-insert-scripts-plugin
Usage
const MyPlugin = require("webpack-insert-scripts-plugin");
let scriptAssets = ['https://www.your-scripts.com/aaa'];
...
plugins: [
new MyPlugin({
paths: scriptAssets //将要在首页注入的scripts链接地址
})
]
Release note
License
MIT