Skip to content

PostCSS plugins don't do anything #1100

@benjarwar

Description

@benjarwar

I'm trying to add some PostCSS plugins. Currently trying to get pxtorem working, but my compiled CSS is unchanged. Here's the relevant config:

module.exports = {
  css: [
    { src: '~assets/scss/main.scss', lang: 'scss' }
  ],

  build: {
    postcss: [
      require('postcss-pxtorem')({
        propList: ['*']
      })
    ]
  }
}
This bug report is available on Nuxt.js community (#c966)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions