forked from Mirrors/keyoxide-web
Improve build script
This commit is contained in:
parent
0157d35d54
commit
2d0383e61a
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,6 @@ COPY . .
|
|||
|
||||
RUN yarn --pure-lockfile
|
||||
RUN yarn run build
|
||||
RUN yarn run build:static
|
||||
|
||||
###
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue