We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack serve
Multicompiler build with dependencies fails with webpack serve and success with common webpack build
webpack
What is the current behavior? build with webpack serve fails without building dependency compiler first.
If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/vankop/webpack-serve-bug
npm run build
src2/build1.js
npm run serve
What is the expected behavior? build succeeded
Other relevant information: webpack version: latest Node.js version: Operating System: Additional tools:
The text was updated successfully, but these errors were encountered:
This issue had no activity for at least three months.
It's subject to automatic issue closing if there is no activity in the next 15 days.
Sorry, something went wrong.
bump
Yeah, it is intresting, by default when you run serve, we run dev server on both compiation (but we keep files in memory), to solve it we need:
As workaround now you can do it:
const path = require("path"); module.exports = [ { mode: "production", name: "build1", entry: "./src1", output: { filename: "build1.js", path: path.resolve(__dirname, "src2") }, devServer: { devMiddleware: { writeToDisk: true, } } }, { mode: "production", name: "app", dependencies: ["build1"], entry: "./src2", } ];
I want to close the issue here (in favor webpack/webpack-cli#2408), because we should fix bug/implement enchantment in webpack-cli.
Feel free to feedback
No branches or pull requests
Bug report
Multicompiler build with dependencies fails with
webpack serve
and success with commonwebpack
buildWhat is the current behavior?
build with
webpack serve
fails without building dependency compiler first.If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/vankop/webpack-serve-bug
npm run build
. it should successfully buildsrc2/build1.js
npm run serve
. it should failWhat is the expected behavior?
build succeeded
Other relevant information:
webpack version: latest
Node.js version:
Operating System:
Additional tools:
The text was updated successfully, but these errors were encountered: