1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 21:02:13 +03:00

Small changes in webpack config

This commit is contained in:
zeot 2018-09-08 15:59:49 +03:00
parent 13b87cbb5c
commit a3f5980331
2 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,8 @@ const { clientPort } = require('./build-config')
const isDev = process.env.NODE_ENV === 'development'
module.exports = {
mode: isDev ? 'development' : 'production',
output: {
publicPath: isDev
? `//localhost:${clientPort}/` // Please bind this hostname to 127.0.0.1 when developing.

View File

@ -12,8 +12,6 @@ const baseConfig = require('./webpack.base.conf')
const isProduction = process.env.NODE_ENV === 'production'
const webpackConfig = merge(baseConfig, {
mode: process.env.NODE_ENV,
entry: {
app: rootResolve('./client/entry.client.ts')
},