html-webpack-add-assets-plugin
v0.0.4
Published
Supplemental plugin for HtmlWebpackPlugin to append script tags for external modules
Downloads
2
Maintainers
Readme
html-webpack-add-assets-plugin
Installation
npm install html-webpack-add-assets-plugin --save-dev
Usage
const HtmlWebpackPlugin = require('html-webpack-plugin');
const htmlWebpackAddAssetsPlugin = require('html-webpack-add-assets-plugin');
module.exports = {
// ...your Webpack config
plugins: [
new HtmlWebpackPlugin(),
new htmlWebpackAddAssetsPlugin([{
url: 'http://absolute.path.of.file.js',
}, {
url: 'https://absolute.path.of.file.js',
}])
]
};