Excluding files from @snowpack/plugin-postcss #2411
Unanswered
apust
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Snowpack to develop and build a React app, and PostCSS to deal with styles.
Unfortunately
@snowpack/plugin-postcss
ignores Snowpack'sexclude
setting. In myindex.tsx
I have these CSS imports:react-perfect-scrollbar
styles are located innode_modules
, and they're already production ready. Processing those styles a second time with my chain of PostCSS plugins causes bugs, i.e. scrollbar starts to appear on the left side.One could argue that I need to tweak my plugin settings. But I feel I would still expect PostCSS plugin to ignore files from excluded folders.
Expected behaviour: I want
@snowpack/plugin-postcss
to process all imported CSS unless it comes fromnode_modules
, when I'm usingexclude: ['**/node_modules/**/*']
setting insnowpack.config.js
.Beta Was this translation helpful? Give feedback.
All reactions