Skip to content

Commit d03f1f6

Browse files
committed
Move uglify params to script definition
Follows-up 46ba111. Instead of passing these as custom parameters to npm run, it probably makes more sense to have them there by default so that the command is always correct in the long term even when the params or file names change again - without having to check the readme each time.
1 parent 7b6b2ab commit d03f1f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ define(['jquery', 'jquery.easing'], function (jQuery, easing) {
2323
* `npm install`
2424
* Make changes
2525
* Test against files in `/examples`
26-
* Build minified version with `npm run uglify -- --compress --mangle`
26+
* Build minified version with `npm run build`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"test": "echo \"Use tests in the examples directory\" && exit 1",
24-
"uglify": "uglifyjs jquery.easing.js -o jquery.easing.min.js"
24+
"build": "uglifyjs jquery.easing.js --compress --mangle -o jquery.easing.min.js"
2525
},
2626
"devDependencies": {
2727
"jquery": ">=1.3.0",

0 commit comments

Comments
 (0)