Browse Source

use js to execute minify

master
hoschi-it 3 years ago
parent
commit
7f9376fbb8
  1. 10
      .gitlab-ci.yml

10
.gitlab-ci.yml

@ -7,8 +7,8 @@ cache:
before_script:
- echo "these are the currently installed node packages "
- npm list
- npm list minify || npm install -g minify
- npm list uglify || npm install -g uglify
- npm list minify || npm install minify
- npm list uglify || npm install uglify
pages:
stage: deploy
@ -17,9 +17,9 @@ pages:
- ln -s node_modules/minify/bin/minify.js minify
- rm public -Rf
- mkdir -p min
- ./minify --js *.js > min/code.js
- ./minify --html index.html > min/index.html
- ./minify --css *.css > min/style.css
- js minify --js *.js > min/code.js
- js minify --html index.html > min/index.html
- js minify --css *.css > min/style.css
- cp min public -r
artifacts:

Loading…
Cancel
Save