-
Notifications
You must be signed in to change notification settings - Fork 512
2.0.0-rc.0 not removing css from bundles #366
Comments
Can you see the same in earlier betas? Any chance for a little project to run? |
Can you try |
The old style ( |
@phun-ky Can you set up a standalone example? This is one of the final issues blocking a release. |
Sorry for the late reply! Sure thing! Will do later tonight, at work
atm.
|
I met the same problem when using webpack2 |
@csonlai I'm still waiting for an example. No way to fix unless someone provides one. |
https://github.com/phun-ky/webpack-2-extract-text-plugin-example here it is. It occured to me, that if this is run with I will have to research a bit more, because I reported this issue with webpack run programatically, not via cli, with |
@phun-ky I get |
Anyway, I can't repro the behavior (probably missing some step you did). It would be good if someone else could it give a go. |
@bebraw I don't expect to see CSS in |
@phun-ky I did not see that behavior myself. |
I'm seeing this issue |
@hulkish Was that against the example above? Can you provide some information on your environment? |
@bebraw I'm having issues reproducing this again. However, I am still using same version of everything. I will report again if I see it again. |
Yea, I'm definitely still seeing this issue in rc.3. However, I am having difficulty nailing down the cause. |
so, ive tried everything in order to get to the bottom of this one. If anyone else can provide some insight that'd be really helpful. |
@hulkish can you share your repo? |
@scottdj92, it seems to occur when trying to use completely webpack 2 syntax of |
ibe tried several versions of: sass-loader, postcss-loader, css-loader, style-loader & extract-text-webpack-plugin... it didn't affect my result.. but adding webpack 2 syntax def broke it |
Can you share your repo and webpack config? |
i can't due to proprietary reasons.. but i will try to recreate tge issue in a new repo and share here |
perhaps my approach is incorrect.. is the following the intended loader syntax for
|
@hulkish You are missing a brace after There really is no way we could help without a small test case to study. |
@bebraw no... thats just my fat thumbs because i wrote it on my phone (i give you permission to point and laugh), just wanted to give a quick idea of what im trying to do |
@bebraw can you at least confirm that my snippet above is the correct intended usage? |
It looks right to me, if you follow with what @bebraw mentioned. |
I finally determined the cause...can you spot it? plugins: [
new ExtractTextPlugin({
filename: '[name].[hash].js',
allChunks: true,
disable
})
] This should have been far more obvious on my part, still don't know how I missed it. Anyway - hopefully my headbutting at least benefits someone else... double triple check your webpack config, folks! |
Please explain what you fixed, for posterity. Afterwards if there's no other issues, I can close this up! 😄 |
|
It happens to the best of us. |
with this config: https://gist.github.com/phun-ky/34744023578f6f000f0de427f11d3800
I am getting bundles with loads of duplicate css in them, like this screenshot:
I get the correct css files produced, but the styles are still in the bundles
The text was updated successfully, but these errors were encountered: