mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Add production webpack npm script
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user