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
Uh oh!
There was an error while loading. Please reload this page.
-
How to split one
main.css(contains style tokens oflogin.htmland400.html) intologin.css(style tokens onlylogin.html) and400.css(style tokens only400.html).For example we have
main.csslogin.html400.htmlI want to get
login.csswith.redtoken and400.csswith.blueand.greenAt the moment i get
login.cssand400.csswhich contains.red,.blueand.greenin both filesMy webpack.config.js
Beta Was this translation helpful? Give feedback.
All reactions