Skip to content

Can we emitCss: true for CSS Modules - but not import the css? #720

Answered by Timeless0911
58bits asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, we do not have such a configuration. In order to ensure the correctness of the output, such a reference relationship of import "./button_module.css"; must be added, see

importCssFiles += `import "./${cssFilename}"`;

I suggest you do some deletion in the final output yourself, or use the bundle mode to bundle all styles into one file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@58bits
Comment options

Answer selected by 58bits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants