0.0.1 • Published 5 years ago
webpack-insert-scripts-plugin v0.0.1
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
0.0.1
5 years ago