Roots Discourse

Laravel mix, Tailwindcss - use different postcss plugins for editor only

Hello !

I’m experimenting with Laravelmix, tailwind and I am trying to enable different PostCSS plugin file based.

Now i’m wondering what is the best Way to use different options by file ?

For exemple I want to use postcss-editor-styles only for the editor.scss, not for the main app.scss.

Here is my webpack.mix.js.

Is it possible ? Is there a better alternative ?

Thank you :slight_smile: )

I’m a little confused. Are you seeing some errors or something? What you posted seems like it should work fine.

No errors, but the postcss-editor-styles plugin seems to apply for both assets when generated.

I don’t manage to enable it only for the editor file.