17 lines
288 B
Makefile
17 lines
288 B
Makefile
node_modules:
|
|
npm install
|
|
|
|
WEBPACK_BUILD := ./node_modules/.bin/webpack-cli --config webpack.config.js
|
|
|
|
.PHONY: prod
|
|
prod:
|
|
${WEBPACK_BUILD} --env.NODE_ENV=production
|
|
|
|
.PHONY: dev
|
|
dev:
|
|
${WEBPACK_BUILD} --env.NODE_ENV=development
|
|
|
|
.PHONY: start
|
|
start: dev
|
|
node dist/backend/src/main.js
|