From 7aae40ab04a8b2dfea1f4748a7b13e89ecdbc984 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 12 Apr 2019 17:33:55 +0100 Subject: [PATCH] fix: empty file in windows server build --- nuxt.config.js | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index 6cc95fcc..e422fb5b 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -4,7 +4,6 @@ module.exports = { srcDir: 'client/', buildDir: 'dist/client/', rootDir: './', - dev: (process.env.NODE_ENV !== 'production'), /* ** Router config */ diff --git a/package.json b/package.json index c1a11e2c..ad498196 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "lint:fix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .", "build": "yarn build:client && yarn build:server", "build:client": "nuxt build", - "build:server": "rimraf dist/server && cpx '{nuxt.config.js,server/**}' dist", + "build:server": "rimraf dist/server && cpx \"{nuxt.config.js,server/**}\" dist", "start": "cross-env NODE_ENV=production node dist/server/app.js", "start:pm2": "pm2 start yarn --name=hare -- start", "analyze": "nuxt build --analyze",