Browse Source

run minify trough node

master
hoschi-it 2 years ago
parent
commit
03069e7aa1
  1. 8
      .gitlab-ci.yml

8
.gitlab-ci.yml

@ -14,12 +14,12 @@ pages:
stage: deploy
script:
- ln -s node_modules/minify/bin/minify.js minify
- ln -s node_modules/minify/bin/minify.js
- rm public -Rf
- mkdir -p min
- js minify --js *.js > min/code.js
- js minify --html index.html > min/index.html
- js minify --css *.css > min/style.css
- node minify.js --js *.js > min/code.js
- node minify.js --html index.html > min/index.html
- node minify.js --css *.css > min/style.css
- cp min public -r
artifacts:

Loading…
Cancel
Save