-
-
Notifications
You must be signed in to change notification settings - Fork 201
How to configure mini-css-extract-plugin #701
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
Comments
Hi 👋 Actually it's not possible to configure I think we can add a new method Encore
.configureMiniCssExtractPlugin(options => {
options.ignoreOrder = true
}); But maybe it will be a better idea to add a method to configure whatever plugin options? Something similar to Encore
.confgurePlugin('mini-css-extract', options => {
options.ignoreOrder = true
}); What do you think @Lyrkan? |
Damned! We're writing in english whereas we're all in France. 😆 |
That's actually something I did in #645 I originally wanted to ship it with a As I said here I don't have any objection about moving that part in its own PR... I left it in the Webpack 5 one to make sure that it will be available when we will start using the new That being said both solutions have their pros/cons... but what I like with methods such as
Some plugins may also not be configurable like others... for instance that one also comes with a loader that has its own options, and it's probably a nice thing to be able to change both of them in a single call. |
For those stumbling upon this issue, thanks to @Lyrkan's work it can be configured like so:
|
Thank you for this issue. |
@Lyrkan is there a documentation for I currently try to configure |
@nerdess Hm, I think you could do it by playing with That being said, if you are actually trying to use CSS modules with React maybe importing |
@Lyrkan Yeah I realized that I already played around with The only way that I cannot believe I am the only one with that problem though, there must be plenty of people out there that use React within Symfony (via |
In our Symfony 4.4 project, we're using "@symfony/webpack-encore": "0.28.2" and got the Conflicting order between: warning when compiling.
The Github of the plugin says to put the flag IgnoreOrder to true in the configuration of the plugin.
But this one is automatically loaded by Webpack and I don't know how to access its configuration, the Symfony docs is not really helpful about that.
Also, I came accross all my search on that comment that shows a configureMiniCssExtractPlugin method that would be really helpful in what we're trying to do but I can't find it anywhere in the master of the Encore file.
Has someone already succeeded in resolving this kind of problem?
Thanks in advance for your explanations about it.
The text was updated successfully, but these errors were encountered: