Closed tatsujb closed 6 years ago
@tatsujb Parcel isn't responsible for the Angular CSS support, the plugin is. It works with React projects because they mostly use the standard import
/require
. I'm closing this as it's a bug of the Angular plugin, please open an issue on the plugin tracker.
Choose one: is this a 🐛
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
scss is compiled on both
ng serve
andparcel ./src/index.html
😯 Current Behavior
ng serve
creates project with compiled scss.no errors, parcel ./src/index.html
ignores scss files entirely and outputs this error :💁 Possible Solution
path into angular-cli's usage of scss compilation and use it for parcel or make sure parcel continues to use node-sass as it does with React.
🔦 Context
💻 Code Sample
ts.config.json :
index.html :
🌍 Your Environment
also my stack shows this bug : https://github.com/gdi2290/angular-starter/issues/1555 : if any scss files that are present are empty the rather than serving the app without loading any style (as I have right now) it fails to compile at all. with :
Unhandled promise rejection: Error: Error: Error: Could not find file: 'C:\Users\j_bard\WebstormProjects\AirConnect\web\web.ui\src\polyfills.ts'.