I'm using grunt, grunt-contrib-sass, and angular material. After adding in angular material, the build began failing in the CI process (BitBucket Pipelines). The error is:
Invalid US-ASCII character "\xE2" online 4242 of bower_components/angular-material/angular-material.scss
Everything I've read about solving this involves setting the encoding at the top of the SASS file, but since it's installed via bower during the build process, that's not plausible. I did try adding this to the top of my main scss file where angular material is imported, but this did not work.
I'm using a PC and it works fine locally. I'm using a docker image starefossen/ruby-node:latest
for CI which is where it fails. Here's the build script in pipelines:
npm install
npm install -g bower
bower install --allow-root
npm install -g grunt-cli
gem install sass
grunt test
grunt build
This installs sass 3.4.22.