diff options
| author | Vohmyanin Sergey Vasilevich <[email protected]> | 2017-10-19 09:01:26 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2017-10-19 09:01:26 +0300 |
| commit | dc5a096e0355cbc8e313677ad16b0e9fbe301f3c (patch) | |
| tree | d8917e6a86f402d0333923b2f51e5a3981ec4673 /package.json | |
| parent | 4a603f11e561bbb528a3a66870ab367c26518990 (diff) | |
| download | bootstrap-dc5a096e0355cbc8e313677ad16b0e9fbe301f3c.tar.xz bootstrap-dc5a096e0355cbc8e313677ad16b0e9fbe301f3c.zip | |
Enable sourcemaps for bundles and include sourcemap for plugins in npm package. (#24303)
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/package.json b/package.json index c6e9c4b03..2e533f873 100644 --- a/package.json +++ b/package.json @@ -36,12 +36,12 @@ "js-lint": "eslint js/ && eslint --config js/tests/.eslintrc.json --env node build/", "js-lint-docs": "eslint --config js/tests/.eslintrc.json assets/js/ docs/ sw.js", "js-compile": "npm-run-all --parallel js-compile-*", - "js-compile-standalone": "cross-env ROLLUP=true rollup --environment BUNDLE:false --config build/rollup.config.js", - "js-compile-bundle": "cross-env ROLLUP=true rollup --environment BUNDLE:true --config build/rollup.config.js", + "js-compile-standalone": "cross-env ROLLUP=true rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap", + "js-compile-bundle": "cross-env ROLLUP=true rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap", "js-compile-plugins": "cross-env PLUGINS=true babel js/src/ --out-dir js/dist/ --source-maps", "js-minify": "npm-run-all --parallel js-minify-*", - "js-minify-standalone": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js", - "js-minify-bundle": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js", + "js-minify-standalone": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js", + "js-minify-bundle": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js", "js-minify-docs": "uglifyjs --mangle --comments \"/^!/\" --output assets/js/docs.min.js assets/js/vendor/anchor.min.js assets/js/vendor/clipboard.min.js assets/js/vendor/holder.min.js assets/js/src/application.js assets/js/src/pwa.js", "js-test": "phantomjs ./node_modules/qunit-phantomjs-runner/runner.js js/tests/index.html 60", "js-test-cloud": "ruby -r webrick -e \"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd, :Logger => WEBrick::Log.new('/dev/null'), :AccessLog => []); trap('INT') { s.shutdown }; s.start\" & node build/saucelabs-unit-test.js", @@ -125,6 +125,7 @@ "build", "js/.eslintrc.json", "js/**/*.js", + "js/**/*.js.map", "scss/**/*.scss" ], "browserslist": [ |
