Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
88b2e228
Commit
88b2e228
authored
7 years ago
by
Johann-S
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use config file for UglifyJS to ensure same behavior on every environments (#22990)
parent
f093b90a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/uglifyjs.config.json
+5
-0
build/uglifyjs.config.json
package.json
+2
-2
package.json
with
7 additions
and
2 deletions
+7
-2
build/uglifyjs.config.json
0 → 100644
+
5
-
0
View file @
88b2e228
{
"output"
:
{
"comments"
:
"/^!/"
}
}
This diff is collapsed.
Click to expand it.
package.json
+
2
-
2
View file @
88b2e228
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
"js-compile"
:
"npm-run-all --parallel js-compile-*"
,
"js-compile"
:
"npm-run-all --parallel js-compile-*"
,
"js-compile-bundle"
:
"shx cat js/src/util.js js/src/alert.js js/src/button.js js/src/carousel.js js/src/collapse.js js/src/dropdown.js js/src/modal.js js/src/scrollspy.js js/src/tab.js js/src/tooltip.js js/src/popover.js | shx sed
\"
s/^(import|export).*//
\"
| babel --filename js/src/bootstrap.js | node build/stamp.js > dist/js/bootstrap.js"
,
"js-compile-bundle"
:
"shx cat js/src/util.js js/src/alert.js js/src/button.js js/src/carousel.js js/src/collapse.js js/src/dropdown.js js/src/modal.js js/src/scrollspy.js js/src/tab.js js/src/tooltip.js js/src/popover.js | shx sed
\"
s/^(import|export).*//
\"
| babel --filename js/src/bootstrap.js | node build/stamp.js > dist/js/bootstrap.js"
,
"js-compile-plugins"
:
"babel js/src/ --out-dir js/dist/ --source-maps"
,
"js-compile-plugins"
:
"babel js/src/ --out-dir js/dist/ --source-maps"
,
"js-minify"
:
"uglifyjs --co
mpress warnings=false --mangle --comments '/^!/'
--output dist/js/bootstrap.min.js dist/js/bootstrap.js"
,
"js-minify"
:
"uglifyjs --co
nfig-file build/uglifyjs.config.json
--output dist/js/bootstrap.min.js dist/js/bootstrap.js"
,
"js-minify-docs"
:
"uglifyjs --co
mpress warnings=false --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"
,
"js-minify-docs"
:
"uglifyjs --co
nfig-file build/uglifyjs.config.json
--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"
,
"js-test"
:
"phantomjs ./node_modules/qunit-phantomjs-runner/runner.js js/tests/index.html 60"
,
"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
\"
& grunt saucelabs-qunit"
,
"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
\"
& grunt saucelabs-qunit"
,
"docs"
:
"npm-run-all docs-compile docs-lint"
,
"docs"
:
"npm-run-all docs-compile docs-lint"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets