@snowpack/plugin-sass does not react to changes in imported files #1717
Replies: 9 comments 9 replies
-
I tested with the latest version 1.1.1 of the plugin. However, recursive resolving of imports was not done. |
Beta Was this translation helpful? Give feedback.
-
Thanks for filing this! #1274 did add support for |
Beta Was this translation helpful? Give feedback.
-
Same issue here: the page doesn't reload when I edit a nested @import in my scss files. |
Beta Was this translation helpful? Give feedback.
-
Same problem - using Maybe |
Beta Was this translation helpful? Give feedback.
-
I can confirm having the same issue of partials |
Beta Was this translation helpful? Give feedback.
-
Same issue, but with |
Beta Was this translation helpful? Give feedback.
-
I had this same issue where sass wasn't reflecting any changes made in partial files. I use 2 scripts when running my dev server: {
"start": "snowpack dev",
"watch:styles": "sass src/sass/style.scss public/style.css --watch"
} The issue I faced was similar to yours in that when I updated I sent to my The reason my structure is set up like this is because I'm developing a WordPress theme, so I want my style.css at the root of my project directory as that's what WP requires to gather the meta information of the theme. |
Beta Was this translation helpful? Give feedback.
-
I believe #2792 has fixed the main issue of files not changing, but it assumes that nothing is excluded. Also, this is for |
Beta Was this translation helpful? Give feedback.
-
Ahhh thanks for the heads up. I feel like it was just yesterday everyone
was flocking to it, but I guess when a github issue is a year old maybe I
shoulda known.
…On Sun, Jun 19, 2022, 11:01 AM Francis Lavoie ***@***.***> wrote:
@Elijer <https://github.com/Elijer> Snowpack is basically dead. Switch to
Vite.
—
Reply to this email directly, view it on GitHub
<#1717 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AED265QRAMTMXYKUD6J7RNLVP476PANCNFSM4UN65UVA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It seems, the plugin is quite new and only recently the recommendation was to use:
['@snowpack/plugin-run-script', {cmd: 'sass src/scss:public/css --no-source-map', watch: '$1 --watch'}]
(which can resolve imported files and react to their changes)
The new
@snowpack/plugin-sass
, however, has the functionscanSassImports
, but it doesn't go through imports recursively.Also, in SASS/SCSS it is very common to import 'partial' files with
_
prefix. Snowpack tries to process them separately and fails when these files use any variables defined in importing scope. The workaround is to add**/_*.scss
to Snowpack exclude config.Beta Was this translation helpful? Give feedback.
All reactions