Replies: 2 comments 5 replies
-
Are you only using Sass? In that case, you can use |
Beta Was this translation helpful? Give feedback.
-
I know this is a dead thread, but the problem occurs when My quick fix is to locally update Edit: This update was done through the |
Beta Was this translation helpful? Give feedback.
-
Hi, I've been trying to migrate from parcel to snowpack, but I'm having issues getting sass/scss/postcss to work properly
I have an
assets/styles
folder with scss files.main.scss
andlanding.scss
are the entry points. They have a lot of imports, and I want the outputs to bemain.css
andlanding.css
, so that I can use them with alink
tag. I don't want to import css in js.When adding
@snowpack/plugin-sass
tosnowpack.config.js
as suggested by the docs in this section, nothing happens. If I follow the article linked by the docs to use postcss and sass, when running snowpack it exits with this error message:I have already run
npx snowpack
to setup the project. I also have to use the--polyfill-node
flag for some reason(I'm guessing it has to do with remark/rehype libraries.Any clue about why does this happen?
Note: I'm using npx snowpack build --watch --polyfill-node. I'm not interested in running a dev server with snowpack as I already have a backend running and serving files from the snowpack output dir.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions