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

Commit

Permalink
fix(webpack_config): PORT -> HTTP_PORT, remove ssl alias
Browse files Browse the repository at this point in the history
fix(webpack_config): PORT -> HTTP_PORT, remove `ssl` alias
  • Loading branch information
Metnew committed Nov 4, 2017
1 parent 2eba2fe commit 89c5d80
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions webpack_config/server/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import webpack from 'webpack'
import rimraf from 'rimraf'
import config from '../config'
import isomorphicWebpackConfig from '../webpack.isomorphic'
const {SENTRY_DSN, CLIENT_DIST_PATH, JWT_SECRET, PORT, isProduction} = config
const {SENTRY_DSN, CLIENT_DIST_PATH, JWT_SECRET, HTTP_PORT, isProduction} = config

// Clear dist dir before run
rimraf(`${config.distPath}/server`, {}, () => {})

const definePluginArgs = {
'process.env.BROWSER': JSON.stringify(false),
'process.env.PORT': JSON.stringify(PORT),
'process.env.HTTP_PORT': JSON.stringify(HTTP_PORT),
'process.env.JWT_SECRET': JSON.stringify(JWT_SECRET),
'process.env.SENTRY_DSN': JSON.stringify(SENTRY_DSN),
'process.env.CLIENT_DIST_PATH': JSON.stringify(CLIENT_DIST_PATH)
Expand Down Expand Up @@ -53,8 +53,7 @@ const baseWebpackConfig = {
...isomorphicWebpackConfig.resolve.alias,
'webpack-assets': `${CLIENT_DIST_PATH}/webpack-assets.json`,
'favicons-assets': `${CLIENT_DIST_PATH}/favicons-stats.json`,
locals: `${config.rootPath}/locals`,
ssl: `${config.srcPath}/server/config/ssl`
locals: `${config.rootPath}/locals`
}
},
module: {
Expand Down

0 comments on commit 89c5d80

Please sign in to comment.