I'm currently using nuxt.js with postcss. I'm trying to use sugarss as a parser for postcss. As said in the documentation in nuxt, I can modify postcss properties in the nuxt.config.js file but when I do so other files such as nuxt-error.vue is also affected by sugarss. Is there anyway I can exclude those files? or I'm missing something to configure my postcss properties? Thanks
//nuxt.config.js
build: {
postcss: {
plugins: {
parser: require('sugarss'),
tailwindcss: { config: './tailwindcss-config.js' },
'postcss-easy-import': {
extensions: ['.sss'], //for sugarss files
},
'postcss-nested': {},
autoprefixer: {},
precss: {},
},
},
question from:
https://stackoverflow.com/questions/65622937/setting-sugarss-as-a-parser-for-postcss-in-nuxt 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…