diff options
| author | Bardi Harborow <[email protected]> | 2016-12-23 23:43:46 +1100 |
|---|---|---|
| committer | Bardi Harborow <[email protected]> | 2016-12-24 00:34:27 +1100 |
| commit | effb2fb4b4bf12e6ecc3934761e0305147f6e2e2 (patch) | |
| tree | bfee1d30dd12ab82a4d0a44e45767c6c08b7a15f /package.json | |
| parent | b0508a975d711d6b24c01f57dd5445c22699fac4 (diff) | |
| download | bootstrap-effb2fb4b4bf12e6ecc3934761e0305147f6e2e2.tar.xz bootstrap-effb2fb4b4bf12e6ecc3934761e0305147f6e2e2.zip | |
Move uglifyjs to npm script.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/package.json b/package.json index f01c27eba..19267d698 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ "postcss-docs": "postcss --config grunt/postcss.js --no-map --replace docs/assets/css/docs.min.css && postcss --config grunt/postcss.js --no-map --replace docs/examples/**/*.css", "scss-lint": "bundle exec scss-lint --config scss/.scss-lint.yml --exclude scss/_normalize.scss scss/*.scss", "scss-lint-docs": "bundle exec scss-lint --config scss/.scss-lint.yml --exclude docs/assets/scss/docs.scss docs/assets/scss/*.scss", + "uglify": "uglifyjs --compress warnings=false --mangle --comments '/^!/' --output dist/js/bootstrap.min.js dist/js/bootstrap.js", + "uglify-docs": "uglifyjs --compress warnings=false --mangle --comments '/^!/' --output docs/assets/js/docs.min.js docs/assets/js/vendor/*.js docs/assets/js/src/application.js", "update-shrinkwrap": "npm shrinkwrap --dev && shx mv ./npm-shrinkwrap.json ./grunt/npm-shrinkwrap.json", "test": "npm run eslint && npm run jscs && grunt test" }, @@ -62,7 +64,6 @@ "grunt-contrib-copy": "^1.0.0", "grunt-contrib-qunit": "^1.2.0", "grunt-contrib-sass": "^1.0.0", - "grunt-contrib-uglify": "^2.0.0", "grunt-contrib-watch": "^1.0.0", "grunt-exec": "^1.0.1", "grunt-html": "^8.0.2", @@ -78,7 +79,8 @@ "postcss-flexbugs-fixes": "^2.0.0", "shelljs": "^0.7.4", "shx": "^0.1.4", - "time-grunt": "^1.4.0" + "time-grunt": "^1.4.0", + "uglify-js": "^2.7.5" }, "engines": { "node": ">=4" |
