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

Symbols not properly replaced when CSS file contains imports #92

Open
ttpcodes opened this issue Aug 1, 2020 · 0 comments
Open

Symbols not properly replaced when CSS file contains imports #92

ttpcodes opened this issue Aug 1, 2020 · 0 comments

Comments

@ttpcodes
Copy link

ttpcodes commented Aug 1, 2020

I'm currently attempting to use extract-svg-sprite-webpack-plugin to define classes in my CSS that reference SVGs from Font Awesome and have the SVGs extracted to a separate file. However, while it seems the SVGs generate successfully, it seems like the CSS is not generated properly if the source CSS file contains @import statements in it.

This problem occurs if using MiniCSSExtractPlugin like I am in order to extract the CSS bundle to a separate file. If you replace MiniCssExtractPlugin.loader in webpack.config.js with 'style-loader', then the CSS appears properly in the page.

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

1 participant