Open MasterTheRock opened 3 years ago
Not documented unfortunately, but if you provide absolute URLs for the concatenated bundles' source urls it'll work perfectly.
import path from 'path';
// ....
{
plugins: [
new WebpackConcatPlugin({
dest: path.resolve('./dist/main.js'),
src: [path.resolve('./dist/polyfill.js'), path.resolve('./dist/main.js')]
})
]
}
FYI here is the relevant function that helped me debug this issue: https://github.com/damorej-at-theinstitutes/webpack-concat-files-plugin/blob/e65d4f4f51ff2a1426fa942bc3eebae8a286fb0b/src/index.js#L163.
The wath bundle not working. I change the content of one file in a bundle and the plugin not re-build the file.
See my webpack.config (I use webpack 5)
And my packages