-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
A second build is triggered since alpha 17 #1581
Comments
Hey @zlk89 thank you so much for your bug report - this bug is already known.. The reason is that it is using a new |
FYI, webpack/webpack#12283 was resolved in |
tried 5.12.3, looks like it works now! |
Issue still reproducible with Yarn 2. With NPM works fine. {
"html-webpack-plugin": "5.0.0-beta.6",
"webpack": "5.16.0",
} |
maybe yarn installs old versions? can you please try if the reproduction example without html-webpack-plugin from from webpack/webpack#12283 fails also for yarn 2? |
@jantimon I can't reproduce problem with your example and Yarn 2. But I can still reproduce it by using simple config: module.exports = {
...
plugins: [
new HtmlWebpackPlugin(),
]
}; So commenting line with After investigation I think this problem is not related to |
Created issue in webpack repository: webpack/webpack#12483 |
thank you :) |
Current behaviour 💣
Seeing webpack got triggered a second build, since html-webpack-plugin removes a local file after initial build:
It was working fine on alpha 16 version.
Expected behaviour ☀️
No file removed after initial build
Reproduction Example 👾
https://codesandbox.io/s/html-webpack-plugin-5x-alpha-forked-57fug?file=/webpack.config.js
You will see it triggers a second build right after initial one under development mode.
(There is a bug in codesandbox, you might need to open a new terminal and run
yarn start
to see the webpack compilation log)Environment 🖥
Node.js v12.16.1
darwin 19.6.0
npm version: 6.13.4
webpack: 5.11.1
html-webpack-plugin: 5.0.0-alpha.17
The text was updated successfully, but these errors were encountered: