Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
chore(webpack_config): lil formatting
Browse files Browse the repository at this point in the history
chore(webpack_config): lil formatting
  • Loading branch information
Metnew committed Nov 17, 2017
1 parent 37de943 commit ff21d51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webpack_config/server/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ const {SENTRY_DSN, CLIENT_DIST_PATH, JWT_SECRET, PORT, isProduction} = config
// Clear dist dir before run
rimraf(`${config.distPath}/server`, {}, () => {})

const chunkFilename = isProduction ? '[name].[chunkhash:6].js' : '[name].js'
const devtool = isProduction ? 'cheap-source-map' : 'eval'
const entry = isProduction
? path.join(config.srcPath, './server')
: path.join(config.srcPath, './server/server')

const definePluginArgs = {
'process.env.BROWSER': JSON.stringify(false),
'process.env.PORT': JSON.stringify(PORT),
Expand All @@ -17,12 +23,6 @@ const definePluginArgs = {
'process.env.CLIENT_DIST_PATH': JSON.stringify(CLIENT_DIST_PATH)
}

const devtool = isProduction ? 'cheap-source-map' : 'eval'
const chunkFilename = isProduction ? '[name].[chunkhash:6].js' : '[name].js'
const entry = isProduction
? path.join(config.srcPath, './server')
: path.join(config.srcPath, './server/server')

let nodeModules = {}
fs
.readdirSync('node_modules')
Expand Down

0 comments on commit ff21d51

Please sign in to comment.