Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

css will emitted everytime when watch mode #584

Closed
winnerhp opened this issue Jul 26, 2017 · 4 comments
Closed

css will emitted everytime when watch mode #584

winnerhp opened this issue Jul 26, 2017 · 4 comments

Comments

@winnerhp
Copy link

my package.json like this:

"extract-text-webpack-plugin": "^2.0.0",
"webpack": "^2.2.1"
'CommonsChunkPlugin': xxx

question?

everytime I save my entry js not the css, the css will emitted again however the css did not change, so what happens?

I notice that this plugin register 'compilation.plugin("additional-assets")' and everytime compilation.assets[somecssfile] = new object, so the compilation.assets[somecssfile].emitted = true

who can help me, thanks?

@alexander-akait
Copy link
Member

@winnerhp thanks for issue. Can your provide minimum reproducible test repo?

@winnerhp
Copy link
Author

@evilebottnawi

  • repos
  • npm install
  • npm run dev

then

everytime you change src/page/entry_one.js or entry_two.js,the control will print like

          Asset      Size  Chunks             Chunk Names
js/entry_two.js    2.8 kB       1  [emitted]  entry_two
  entry_one.css  42 bytes       0  [emitted]  entry_one
  entry_two.css  22 bytes       1  [emitted]  entry_two

both entry_one.css and entry_two.css will emitted,however the content of css is not change.

@alexander-akait
Copy link
Member

@winnerhp seems related to webpack/webpack#5321 (just information)

@alexander-akait
Copy link
Member

@winnerhp Duplicate #594. Thanks for issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants