Skip to content

Conflict in order with mini-css-extract-plugin (i know,the question have already been asked several time :-/) #657

@fatoldsun00

Description

@fatoldsun00

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions