You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostCSS doesn't seem to be getting applied to the files that CSS Modules pulls in via composes. This seems to be happening because vue-loader applies the postcss plugins as a module instead of a webpack plugin.
What is expected?
For PostCSS plugins to be applied to the files CSS Modules imports via composes.
What is actually happening?
PostCSS is not being applied to the files CSS Modules imports via composes
In my reproduction link, I have a repo that contains a vue init webpack build with very minor changes. It comes with autoprefixer installed to postcss and it should be getting applied to every file, however, this shows that it's not getting applied to the files imported via CSS Modules.
This loader entry in my webpack config has been a temporary fix:
Version
12.2.2
Reproduction link
https://github.com/hirokiosame/vue-loader-css-modules-postcss
Steps to reproduce
PostCSS doesn't seem to be getting applied to the files that CSS Modules pulls in via
composes
. This seems to be happening because vue-loader applies the postcss plugins as a module instead of a webpack plugin.What is expected?
For PostCSS plugins to be applied to the files CSS Modules imports via
composes
.What is actually happening?
PostCSS is not being applied to the files CSS Modules imports via
composes
In my reproduction link, I have a repo that contains a
vue init webpack
build with very minor changes. It comes with autoprefixer installed to postcss and it should be getting applied to every file, however, this shows that it's not getting applied to the files imported via CSS Modules.This loader entry in my webpack config has been a temporary fix:
The text was updated successfully, but these errors were encountered: