outer-script-html-webpack-plugin
Inject original js into html, without webpack compiler.
Working with html-webpack-plugin and Webpack 3.
Install
$ npm install outer-script-html-webpack-plugin --save-dev
Usage
webpack.config.js
const HtmlWebpackPlugin = const OuterScriptPlugin = moduleexports = ... output: publicPath: '/public/' plugins: ... ... outerScripts: chunk: '/absolute/path/to/a.js' filename: 'js/a.js' chunk: '/absolute/path/to/b.js' filename: 'js/b.[chunkhash].js'
ouput html:
... // original a.js and b.js without compiling will be injected here
License
MIT