diff --git a/Dockerfile b/Dockerfile index f233d18..33c5aa0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,6 @@ COPY . . RUN yarn --pure-lockfile RUN yarn run build -RUN yarn run build:static ### diff --git a/package.json b/package.json index faff89f..35cefa4 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "dev": "yarn run watch & yarn run build:static:dev", "test": "mocha", "watch": "./node_modules/.bin/nodemon --config nodemon.json ./", - "build": "ncc build index.js -o dist", + "build": "yarn run build:server & yarn run build:static", + "build:server": "ncc build index.js -o dist", "build:static": "webpack --config webpack.config.js --env static=true --env mode=production", "build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development", "license:check": "./node_modules/.bin/license-check-and-add check",