Closed
Description
Description
While used with Aggressive Splitting Plugin - chunks are not being emitted into html
file.
Error Message & Stack Trace
N/A
Config
Copy the relevant section from webpack.config.js
.
const webpack = require('webpack');
const path = require('path');
const htmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './index.js',
output: {
filename: '[id].bundle.js',
path: path.resolve(__dirname, 'dist')
},
plugins: [
new webpack.optimize.AggressiveSplittingPlugin({
maxSize: 20 //small size because of small input files
}),
new htmlWebpackPlugin({
filename: 'ready.html'
})
]
}
Copy your template file:
Using default
Relevant Links
Here is a repository with minimal reporductible example: https://github.com/Morishiri/hwp-asp-plugins-error output is located in dist
directory.
Environment
Tell us which operating system you are using, as well as which versions of Node.js, npm, webpack, and html-webpack-plugin. Run the following to get it quickly:
$ node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v6.11.2
linux 4.13.5-200.fc26.x86_64
$ npm --version
3.10.10
$ npm ls webpack
[email protected] /home/xxx/yyy/hwp-asp-error-repo
└── [email protected]
$ npm ls html-webpack-plugin
[email protected] /home/xxx/yyy/hwp-asp-error-repo
└── [email protected]