Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
add uglify-js as dev dependency, use it to write build:js script for …
Browse files Browse the repository at this point in the history
…minification, add build:js script to master build script, update .gitignore
  • Loading branch information
RwwL committed Nov 20, 2017
1 parent ba5663b commit 6f85c9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/less
node_modules/.bin
node_modules/uglify-js
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"main": "jquery.flexslider.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build:js": "./node_modules/.bin/uglifyjs jquery.flexslider.js --comments --ie8 -o jquery.flexslider-min.js",
"build:css": "./node_modules/.bin/lessc flexslider.less flexslider.css",
"build:demo": "cp jquery.flexslider.js demo/js/jquery.flexslider.js && cp flexslider.css demo/css/flexslider.css",
"build": "npm run build:css && npm run build:demo"
"build": "npm run build:js && npm run build:css && npm run build:demo"
},
"repository": {
"type": "git",
Expand All @@ -30,6 +31,7 @@
"jquery": ">=1.11.3"
},
"devDependencies": {
"less": "^2.7.3"
"less": "^2.7.3",
"uglify-js": "^3.1.10"
}
}

0 comments on commit 6f85c9a

Please sign in to comment.