webpack de producción
This commit is contained in:
parent
0f3cde25d3
commit
56a8af37f0
1 changed files with 6 additions and 0 deletions
6
Makefile
6
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
|
||||
|
|
Loading…
Reference in a new issue