Skip to content

CSS not processed by PostCSS when css.extract is false #2451

@adamwathan

Description

@adamwathan

Version

3.0.1

Reproduction link

https://github.com/adamwathan/vue-cli3-extract-postcss-bug

Node and OS info

Node 10.9.0 / yarn 1.9.4 / macOS 10.13.6

Steps to reproduce

  1. Create a new vue-cli project

  2. Add a vue.config.js file with the following contents:

module.exports = {
  css: {
    extract: false
  }
}
  1. Run npm run build

What is expected?

The final CSS injected by the JS in the dist folder is processed by the configured PostCSS plugins, like autoprefixer.

What is actually happening?

PostCSS plugins are not being applied, so even out of the box autoprefixer isn't working for example. You can see that the transform property in App.vue is not being duplicated with the -webkit prefix for example.

Metadata

Metadata

Assignees

Labels

needs team reproWe acknowledged your report and will soon try to reproduce it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions