How to split one main.css into 1.css and 2.css #1296
Unanswered
AlexKolykhalov
asked this question in
Q&A
Replies: 1 comment 1 reply
-
To separate CSS styles properly, you need to configure the PurgeCSSPlugin for each HTML file and chunk separately. You can achieve this by setting up multiple PurgeCSSPlugin instances, each targeting only the relevant HTML file for its associated chunk.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to split one
main.css
(contains style tokens oflogin.html
and400.html
) intologin.css
(style tokens onlylogin.html
) and400.css
(style tokens only400.html
).For example we have
main.css
login.html
400.html
I want to get
login.css
with.red
token and400.css
with.blue
and.green
At the moment i get
login.css
and400.css
which contains.red
,.blue
and.green
in both filesMy webpack.config.js
Beta Was this translation helpful? Give feedback.
All reactions