diff --git a/server/build/dev-server.js b/server/build/dev-server.js index 03c5be2..23e060e 100644 --- a/server/build/dev-server.js +++ b/server/build/dev-server.js @@ -10,7 +10,7 @@ env.LOG_LEVEL = 'debug'; const nodemon = spawn( 'nodemon', - ['--exec', '"node --inspect dist/server.js"'], + ['--exec', '"node --inspect dist/server-dev.js"'], { env: env, shell: true } ); diff --git a/server/build/webpack.614.prod.conf.js b/server/build/webpack.614.prod.conf.js index 1067188..3200acd 100644 --- a/server/build/webpack.614.prod.conf.js +++ b/server/build/webpack.614.prod.conf.js @@ -11,9 +11,9 @@ module.exports = { __dirname: false, __filename: false, }, - entry: [ 'babel-polyfill', './dist/server.js' ], + entry: [ 'babel-polyfill', './dist/server-dev.js' ], output: { - filename: "server-6-14.js", + filename: "server.js", path: path.join(__dirname, '../dist') }, module: { diff --git a/server/build/webpack.base.conf.js b/server/build/webpack.base.conf.js index 18c3ca0..3462909 100644 --- a/server/build/webpack.base.conf.js +++ b/server/build/webpack.base.conf.js @@ -16,7 +16,7 @@ module.exports = { }, entry: [ './src/index.ts' ], output: { - filename: "server.js", + filename: "server-dev.js", path: resolve('dist') }, optimization: { diff --git a/server/package.json b/server/package.json index e061664..9f37fe6 100644 --- a/server/package.json +++ b/server/package.json @@ -5,9 +5,8 @@ "scripts": { "start": "node dist/server.js", "dev": "node build/dev-server.js", - "build": "webpack --config build/webpack.prod.conf.js", - "6-14-start": "node dist/server-6-14.js", - "6-14-build": "npm run build && webpack --config build/webpack.614.prod.conf.js" + "build-prod": "webpack --config build/webpack.prod.conf.js", + "build": "npm run build-prod && webpack --config build/webpack.614.prod.conf.js" }, "repository": { "type": "git",