mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
parent
b22d97ea3a
commit
821676511b
@ -182,9 +182,9 @@ export default class WebpackClientConfig extends WebpackBaseConfig {
|
||||
`${querystring.stringify(hotMiddlewareClientOptions)}&path=${clientPath}`.replace(/\/\//g, '/')
|
||||
|
||||
// Entry points
|
||||
config.entry = {
|
||||
config.entry = Object.assign({}, config.entry, {
|
||||
app: [path.resolve(buildDir, 'client.js')]
|
||||
}
|
||||
})
|
||||
|
||||
// Add HMR support
|
||||
if (this.dev) {
|
||||
|
@ -69,9 +69,9 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
|
||||
Object.assign(config, {
|
||||
target: 'node',
|
||||
node: false,
|
||||
entry: {
|
||||
entry: Object.assign({}, config.entry, {
|
||||
app: [path.resolve(this.buildContext.options.buildDir, 'server.js')]
|
||||
},
|
||||
}),
|
||||
output: Object.assign({}, config.output, {
|
||||
filename: 'server.js',
|
||||
libraryTarget: 'commonjs2'
|
||||
|
Loading…
Reference in New Issue
Block a user