Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
986 views
in Technique[技术] by (71.8m points)

nuxt.js - Setting sugarss as a parser for postcss in Nuxt

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...