Skip to content
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

style-loader Supported? #80

Open
1 of 4 tasks
MitchTalmadge opened this issue Apr 9, 2021 · 4 comments
Open
1 of 4 tasks

style-loader Supported? #80

MitchTalmadge opened this issue Apr 9, 2021 · 4 comments

Comments

@MitchTalmadge
Copy link

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

I am unsure if this plugin supports style-loader. In my attempts to get it working, I have not seen any differences between using this plugin and not using it; however, I am unsure if this is my fault or because the plugin does not support it.

Your Proposal for Changes

Document whether this plugin works for style-loader or if it requires something like mini-css-extract-plugin.

@MitchTalmadge MitchTalmadge changed the title style-loader support style-loader Supported? Apr 9, 2021
@alexander-akait
Copy link
Member

alexander-akait commented Apr 10, 2021

No, right now you need use cssnano as postcss plugin, but let's mark this as feature for better DX

@tunnelpuzzle
Copy link

@alexander-akait What would be the config to make cssnano and postcss-loader work with style-loader?

@alexander-akait
Copy link
Member

@tunnelpuzzle Currently you can use cssnano as a plugin for postcss for style which use style-loader

@tunnelpuzzle
Copy link

tunnelpuzzle commented Jun 24, 2023

@alexander-akait Is it possible to do that if you're also using css-loader? Not using css-loader that works but adding css-loader seems to make it not minify.

Edit: Setting sourceMap: false in css-loader seems to make it work.

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

3 participants