From 2d0383e61a32f63e8cb9ff2957a478d28da92cb1 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 15 Mar 2022 15:43:06 +0100 Subject: [PATCH] Improve build script --- Dockerfile | 1 - package.json | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) 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",