mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-07 02:50:33 +00:00
Add production webpack npm script
This commit is contained in:
parent
4a801d266e
commit
8537c7b9b6
2 changed files with 6 additions and 1 deletions
|
@ -101,6 +101,9 @@ css: $(CSS_FILES)
|
|||
compile: $(JS_FILES) css public/js/libs/sharejs.js public/js/main.js public/js/ide.js
|
||||
@$(MAKE) compile_modules
|
||||
|
||||
compile_es:
|
||||
npm -q run webpack:production
|
||||
|
||||
compile_full:
|
||||
$(COFFEE) -c -p app.coffee > app.js
|
||||
$(COFFEE) -o app/js -c app/coffee
|
||||
|
@ -113,6 +116,7 @@ compile_full:
|
|||
$(MAKE) $(CSS_FILES)
|
||||
$(MAKE) compile_modules_full
|
||||
$(MAKE) compile # ide.js, main.js, share.js, and anything missed
|
||||
$(MAKE) compile_es
|
||||
|
||||
compile_modules: $(MODULE_MAKEFILES)
|
||||
@set -e; \
|
||||
|
@ -153,7 +157,7 @@ clean_app:
|
|||
rm -rf app/js
|
||||
|
||||
clean_frontend:
|
||||
rm -rf public/js/{analytics,directives,filters,ide,main,modules,services,utils}
|
||||
rm -rf public/js/{analytics,directives,es,filters,ide,main,modules,services,utils}
|
||||
rm -f public/js/*.{js,map}
|
||||
rm -f public/js/libs/sharejs.{js,map}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
"nodemon": "nodemon --config nodemon.json",
|
||||
"nodemon:frontend": "nodemon --config nodemon.frontend.json",
|
||||
"webpack": "webpack-dev-server --config webpack.config.dev.js",
|
||||
"webpack:production": "webpack --config webpack.config.prod.js",
|
||||
"lint": "eslint -f unix ."
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
Loading…
Add table
Reference in a new issue