Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit 6ac3049

Browse files
committed
fix(webpack_config): remove eslint errors in server config
fix(webpack_config): remove eslint errors in server config
1 parent a87d44c commit 6ac3049

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

webpack_config/server/index.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,17 @@ import config from '../config'
55
import isomorphicWebpackConfig from '../webpack.isomorphic'
66
import childProcess from 'child_process'
77

8-
const {
9-
SENTRY_DSN,
10-
CLIENT_DIST_PATH,
11-
JWT_SECRET,
12-
ANALYZE_BUNDLE,
13-
PORT,
14-
isProduction
15-
} = config
16-
178
// Cleare dist dir before run
189
const exec = childProcess.execSync
1910
exec(`rm -rf ${config.distPath}/server`)
2011

2112
const definePluginArgs = {
2213
'process.env.BROWSER': JSON.stringify(false),
23-
'process.env.CLIENT_DIST_PATH': JSON.stringify(CLIENT_DIST_PATH)
14+
'process.env.CLIENT_DIST_PATH': JSON.stringify(config.CLIENT_DIST_PATH)
2415
}
2516

26-
const devtool = isProduction ? 'cheap-source-map' : 'source-map'
27-
const entry = isProduction
17+
const devtool = config.isProduction ? 'cheap-source-map' : 'source-map'
18+
const entry = config.isProduction
2819
? path.join(config.srcPath, './server')
2920
: path.join(config.srcPath, './server/decorator')
3021

0 commit comments

Comments
 (0)