Alert js or css path in the html file.Works with newer html-webpack-plugin versions
- Install via
npm i -D html-webpack-assets-path-plugin
- Add to your webpack config AFTER HtmlWebpackPlugin
var HtmlWebpackAssetsPathPlugin = require('html-webpack-assets-path-plugin');
...
plugins: [
new HtmlWebpackPlugin({
filename: join(OUTPUT_DIR, './dist/index.html'),
// ..
}),
new HtmlWebpackAssetsPathPlugin({
// specify css path
cssPath: './dist'
// specify js path
jsPath: './dist'
})
]
Testing is done via ts-node and mocha. Test files can be found in /test
. Just run npm test
after installing to see the tests run.