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

Problems when the same CSS @import is used in entry and on-demand chunks #14

Closed
necolas opened this issue Sep 2, 2014 · 1 comment
Closed

Comments

@necolas
Copy link
Contributor

necolas commented Sep 2, 2014

If the CSS of a module contained in a loaded-on-demand chunk @import's a CSS file that was also imported by the CSS of a module in an entry chunk, the module that was created (by css-loader) is stripped from the output.

When the chunk is loaded, it throws an error because the import's module is missing from the build output. Also note the injection of this in the head of the document:

<style type="text/css">[object Object]</style>

(Note that this issue may be related to #11, and that the test case uses the style-loader separately in order to avoid the error from #11)

Test case

@sokra
Copy link
Member

sokra commented Sep 6, 2014

the problem is that the RemoveParentModulesPlugin runs before the ExtractTextPlugin...

Difficult to fix........ :(

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

No branches or pull requests

2 participants