Skip to content

Commit

Permalink
Use minified version of packages in EXTERNAL_JS
Browse files Browse the repository at this point in the history
Using vue.min.js enables Vue production mode.
  • Loading branch information
gvalkov committed Feb 7, 2019
1 parent 5527a1b commit 25e9227
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/Makefile
Expand Up @@ -6,10 +6,10 @@ BUILD ?= prod
DISTDIR ?= dist

EXTERNAL_JS := \
node_modules/vue/dist/vue.js \
node_modules/vue/dist/vue.min.js \
node_modules/vue-multiselect/dist/vue-multiselect.min.js \
node_modules/sockjs-client/dist/sockjs.js \
node_modules/html5shiv/dist/html5shiv.js \
node_modules/sockjs-client/dist/sockjs.min.js \
node_modules/html5shiv/dist/html5shiv.min.js \
node_modules/vue-loading-overlay/dist/vue-loading.min.js

EXTERNAL_CSS := \
Expand Down Expand Up @@ -58,6 +58,10 @@ $(DISTDIR)/main.js: $(INTERNAL_JS)
$(DISTDIR)/main.css: $(INTERNAL_CSS)
$(CMD_NODESASS) --quiet --output-style compressed scss/main.scss > $@
else

# Usin the non-minified package disables production mode.
EXTERNAL_JS := $(EXTERNAL_JS:%/vue.min.js=%/vue.js)

$(DISTDIR)/3rdparty.js: $(EXTERNAL_JS)
@cat $(EXTERNAL_JS) > $@

Expand Down

0 comments on commit 25e9227

Please sign in to comment.