mirror of
https://github.com/icewind1991/mapboundaries.git
synced 2026-06-03 19:04:07 +02:00
boilerplate
This commit is contained in:
commit
abfdb9d2d9
9 changed files with 224 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
all: build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf dist
|
||||
rm -rf node_modules
|
||||
|
||||
node_modules: package.json
|
||||
npm install
|
||||
|
||||
sources=$(wildcard js/*) $(wildcard js/*/*) $(wildcard css/*/*) $(wildcard css/*)
|
||||
|
||||
.PHONY: build
|
||||
build: node_modules $(sources)
|
||||
node node_modules/.bin/webpack --colors --display-error-details --config webpack.prod.config.js
|
||||
|
||||
build/js/main.js: build
|
||||
|
||||
.PHONY: watch
|
||||
watch: node_modules
|
||||
node node_modules/.bin/webpack-dev-server --hot --inline --config webpack.dev.config.js
|
||||
Loading…
Add table
Add a link
Reference in a new issue