From 56a8af37f0144f88a477189f396bd2744b2b019a Mon Sep 17 00:00:00 2001 From: f Date: Thu, 12 Nov 2020 14:42:00 -0300 Subject: [PATCH] =?UTF-8?q?webpack=20de=20producci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 071e4ff..08d923a 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,8 @@ serve: /etc/hosts ## Servidor de prueba kill-servers: /tmp/nghttpd.pid /tmp/nghttpx.pid /tmp/webpack.pid ## Cerrar el servidor +webpack: assets/js/pack.js ## Compilar JS + webpack-dev-server: ## Servidor de prueba de Webpack ./node_modules/.bin/webpack-dev-server --public $(domain):9095 & echo $$! > /tmp/webpack.pid @@ -43,4 +45,8 @@ fa: assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome @test -f $@ && cat $@ | xargs -r kill &>/dev/null || : @rm -f $@ +js = $(wildcard _packs/*.js) $(wildcard _packs/*/*.js) +assets/js/pack.js: $(js) + ./node_modules/.bin/webpack --config webpack.prod.js + .PHONY: always