1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 03:10:10 +03:00

dist: bring back dist/*.js

This commit is contained in:
Shawn Allen 2019-02-11 14:34:50 -08:00
parent 705f760693
commit 481d796d06

View File

@ -21,7 +21,8 @@ for index in $indexes; do
pushd $dir > /dev/null
echo "[dist] $index -> $file"
npx node-sass --include-path=$root index.scss > "$root/$file"
npx cssstats "$root/$file" > "$root/$outdir/$name.json"
npx cssstats "$root/$file" > "$root/$outdir/$name.stats.json"
echo "module.exports = {cssstats: require('./$name.stats.json')}" > "$root/$outdir/$name.js"
popd > /dev/null
done
popd > /dev/null