Skip to content

can‘t split css by chunk #54

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

Closed
yiqianglin opened this issue Mar 24, 2018 · 4 comments
Closed

can‘t split css by chunk #54

yiqianglin opened this issue Mar 24, 2018 · 4 comments

Comments

@yiqianglin
Copy link

yiqianglin commented Mar 24, 2018

I want to split css by chunk,but all build into Entrypoint app,generate only one css(app.css). This is my config:
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
image
image
image

page:
image
and has differance css in differance chunk, but it generate only one css:
image

this is my code:
https://github.com/yiqianglin/webpack4Demo

@yiqianglin
Copy link
Author

actually, i want to generate app.css, index.css, page1,css, error.css by chunkName, but it failed.

@bebraw
Copy link

bebraw commented Mar 26, 2018

You could expand on my work at #57. Essentially you have to define a function to write the CSS file through webpack's API. The rest should be there.

@sokra
Copy link
Member

sokra commented Mar 29, 2018

Remove the style-loader and vue-style-loader

@michael-ciniawsky
Copy link
Member

#54 (comment)

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

No branches or pull requests

4 participants