Skip to content

Commit

Permalink
Build: Sass - no charset
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Apr 9, 2021
1 parent 7b450f0 commit b2245a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function css_compress {
DIR=$(dirname $1)

echo_msg "CSS compressing $FILE.css"
sass --stop-on-error --style compressed $DIR/$FILE.css > $DIR/$FILE.min.css
sass --no-charset --stop-on-error --style compressed $DIR/$FILE.css > $DIR/$FILE.min.css

echo_msg " File size: $(ls -l $DIR/$FILE.min.css | awk -F" " '{ print $5 }')"
fi
Expand All @@ -69,7 +69,7 @@ function scss_compile {
DIR=$(dirname $1)

echo_msg "SCSS compiling $FILE.scss"
sass --stop-on-error --style expanded $DIR/$FILE.scss > $DIR/$FILE.css
sass --no-charset --stop-on-error --style expanded $DIR/$FILE.scss > $DIR/$FILE.css

css_compress $DIR/$FILE.css
}
Expand Down

0 comments on commit b2245a5

Please sign in to comment.