-
Notifications
You must be signed in to change notification settings - Fork 513
[4.0.0-alpha.0] Webpack runtime code in extracted css files #726
Comments
Still having same issue with 4.0.0-beta.0 |
@pshurygin can you send PR and tests? |
I managed to reproduce the issue with this minimal setup: /index.js:
/a.css:
/src/b.js:
The problem is that the workaround above does not work in this case because webpack context module code comes as RawSource instead of OriginalSource. And i'm not sure about how to fix this for good. |
Having the same issue. Might have to do with webpack 4 not having a CSS module type yet. |
I am also having this issue whenever my code contains dynamic imports. This is a pretty major issue. |
Having this issue too... This is the only thing that's keeping me from
upgrading to webpack 4
…On Tue, Mar 13, 2018, 01:27 Andy Barron ***@***.***> wrote:
I am also having this issue whenever my code contains dynamic imports.
This is a pretty major issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFTLl7_rpzjWNINLuTd-Ns4FxERZj8Dcks5tdrAHgaJpZM4SMILS>
.
|
Oh, and FWIW, I am using ES6-style dynamic imports (i.e. |
Have the same issue |
same here here is an example with Webpack 4.1.1 https://github.com/OzzyCzech/webpack-the-right-way |
TL;DR Use The |
I'm using extract text plugin 4.0.0-alpha.0 with webpack 4 beta2. I have some dynamic requires in my code(without any css, js and json only). But one of my output css files contains not only styles but also code like this(which obviously breaks stuff):
I could workaround this by adding these lines to renderExtractedChunk method of the plugin, which is obviously some dirty hack.
The text was updated successfully, but these errors were encountered: