File: build-css.sh

package info (click to toggle)
plastex 3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,132 kB
  • sloc: python: 23,341; xml: 18,076; javascript: 7,755; ansic: 46; makefile: 40; sh: 26
file content (16 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

# This script uses sass, and postcss with cssnano and autoprefixer
# Those can be installed using npm with
# sudo npm install -g sass postcss-cli autoprefixer cssnano-cli
sass --no-source-map --update sass:build
cd build
postcss --use autoprefixer -o theme-blue-pre.css  theme-blue.css
postcss --use autoprefixer -o theme-green-pre.css  theme-green.css
postcss --use autoprefixer -o theme-white-pre.css  theme-white.css
cssnano theme-blue-pre.css > theme-blue.css
cssnano theme-green-pre.css > theme-green.css
cssnano theme-white-pre.css > theme-white.css
mv theme-blue.css theme-green.css theme-white.css ../../Themes/default/styles/
cd ..
rm -rf build