I want to add another CSS file to be compiled by webpack.mix.js that doesn’t get compiled with all the rest of the CSS. There’s a few stylesheets I want to load only on specific page templates. I’m using Sage 10 btw.
Here’s what I have:
mix.postCss('resources/assets/styles/app.css', 'styles', [
require('postcss-import')(),
require('tailwindcss')('./tailwind.config.js'),
require('precss')(),
])
`
And then for the additional file
mix.postCss('resources/assets/styles/landing-page.css', 'styles', [
require('postcss-import')(),
require('postcss-custom-media'),
require('tailwindcss')('./tailwind.config.js'),
require('precss')(),
])
Is it necessary to run the same for each file I want to have compiled?