mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 12:52:31 +03:00
Small changes in webpack config
This commit is contained in:
parent
13b87cbb5c
commit
a3f5980331
@ -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.
|
||||
|
@ -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')
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user