-
-
Notifications
You must be signed in to change notification settings - Fork 390
Description
Hi community, i need your help !
Stack
-
Electron, electron-webpack, vuejs (vue-loader / vue-router)
-
CSS are in .vue directly, into a <style lang="scss">, so if i read doc correctly it's vue-loader who manage lang="scss"
The problem
I had a probleme with mini-css-extract plugin : like many people i get a "conflict order warning". I read a lot and the best way to solve it, it's to re-order css (and so .vue child import into parent .vue).
But i stuck :
- I tried to ignore the order with ignoreOrder option of mini-css-extract plugin, but it no longer seems avalaible in webpack 4.
- I tired to ignore error with webpack config ( stats.warningFilter ) but i'm a neewby with webpack... So the magick behin electron-webpack stuck me
- I tried to reorder css, because each css style is into a <style lang="scss"> in .vue file, the only thing i can do it's to change order of .vue import... But when i add a component in a child component of my main component i have order warning again.
I read that not add scoped or module into <style> is not a good practice, but when i had scoped or module it does not change anything.
It's drive me crazy, i don't understand where the order of the component is in conflict. I can give snippet if it's usefull for somebody but app is large and not i'm not sure that i can reproduce error
Thank for any help