parcel: Parcel V2 - Sass changes do not update in DIST folder
🐛 bug report
After starting the live server on http://localhost:1234 with the command npm start and then changing a property of a sass file, nothing get updated in the CSS file generated in the dist folder.
🎛 Configuration (.babelrc, package.json, cli command)
{
"name": "Test",
"version": "1.0.0",
"description": "test...",
"default": "index.html",
"scripts": {
"start": "parcel index.html",
"build": "parcel build index.html --dist-dir ./dist"
},
"author": "Test",
"license": "ISC",
"devDependencies": {
"parcel": "^2.0.0-beta.1",
"sass": "^1.32.8"
},
"dependencies": {
"core-js": "^3.6.5",
"regenerator-runtime": "^0.13.7"
}
}
🤔 Expected Behavior
I should save the sass file while the server is running and the change should be reflected in the CSS file inside the dist folder.
😯 Current Behavior
After I save the file, the CSS file generated by parcel is not changed at all.
💁 Possible Solution
No idea how to fix this.
🔦 Context
I’m trying to edit sass files of my project and I would like to see the changes I make automatically in the dist folder.
💻 Code Sample
🌍 Your Environment
| Software | Version |
|---|---|
| Parcel | ^2.0.0-beta.1 |
| Node | 14.15.4 |
| npm/Yarn | 6.14.10 |
| Operating System | Win 10 |
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 3
- Comments: 22 (6 by maintainers)
Hi, This is still an issue and scss files don’t rebuild. Any progress on this ticket?
Upon some further testing, it looks like if I don’t “save” with a syntax error on SCSS file, it builds into dist just fine. It’s only when there is syntax error and it’s thrown on the console, is when it seems any further changes don’t compile into the dist, until I restart the server.
I just moved to Parcel “parcel-bundler”: “^1.12.3”, and it works perfectly. So is definitely parcel 2 that has a bug.