From 25e9227cc91a3865acfa2ed2d2e4ac5b05824eca Mon Sep 17 00:00:00 2001 From: Georgi Valkov Date: Thu, 7 Feb 2019 23:21:32 +0100 Subject: [PATCH] Use minified version of packages in EXTERNAL_JS Using vue.min.js enables Vue production mode. --- frontend/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/Makefile b/frontend/Makefile index afdd852..59441a6 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -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 := \ @@ -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) > $@