feat: Adds some compatibility for building on windows.

This commit is contained in:
Дамян Минков 2022-10-05 08:48:43 -05:00
parent ee5817539b
commit e52c9043a5
1 changed files with 7 additions and 2 deletions

View File

@ -16,8 +16,13 @@ OUTPUT_DIR = .
STYLES_BUNDLE = css/all.bundle.css STYLES_BUNDLE = css/all.bundle.css
STYLES_DESTINATION = css/all.css STYLES_DESTINATION = css/all.css
STYLES_MAIN = css/main.scss STYLES_MAIN = css/main.scss
WEBPACK = ./node_modules/.bin/webpack ifeq ($(OS),Windows_NT)
WEBPACK_DEV_SERVER = ./node_modules/.bin/webpack serve --mode development WEBPACK = .\node_modules\.bin\webpack
WEBPACK_DEV_SERVER = .\node_modules\.bin\webpack serve --mode development
else
WEBPACK = ./node_modules/.bin/webpack
WEBPACK_DEV_SERVER = ./node_modules/.bin/webpack serve --mode development
endif
all: compile deploy clean all: compile deploy clean