Closed tspringborg closed 3 years ago
Fixed it by using
module.exports = (config, env) => {
const wc = webpackConfig(config, env);
wc.plugins.push(new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1}))
return wc
}
Thank you @martianatwork. This also solved it for us.
Describe the bug
After including a npm package with some webcomponents built by stenciljs my direflow build failed with:
Fixed this by modifying the filechunkName in the webpack config to use a token instead.
Now running
direflow-scripts build
correctly creates a direflowBundle.js file in which everything seems in order.But the build "fails" when trying to report filesizes
To reproduce
I've created a repo that can reproduce the issue. https://github.com/tspringborg/direflow-chunks-issue
Which is a default
direflow create
with https://github.com/telekom/scale installed and importedNote The filename reported missing in the demo repo is not
3.js
since I'm using another, publically available, stenciljs built library in the demo repo.Expected behavior
Shouldn't exit with an error.
Package Manager:
To install Direflow, I used npm
node version:
v12.13.1
npm version:8.1.3
OS: macOS 10.15.7 (Catalina)