perf(webpack): use futureEmitAssets (#5003)

This commit is contained in:
Alexander Lichter 2019-02-11 10:42:37 +00:00 committed by Pooya Parsa
parent 8106523311
commit 3997d5049d

View File

@ -122,6 +122,7 @@ export default class WebpackBaseConfig {
return { return {
path: path.resolve(this.options.buildDir, 'dist', this.isServer ? 'server' : 'client'), path: path.resolve(this.options.buildDir, 'dist', this.isServer ? 'server' : 'client'),
filename: this.getFileName('app'), filename: this.getFileName('app'),
futureEmitAssets: true, // TODO: Remove when using webpack 5
chunkFilename: this.getFileName('chunk'), chunkFilename: this.getFileName('chunk'),
publicPath: isUrl(this.options.build.publicPath) publicPath: isUrl(this.options.build.publicPath)
? this.options.build.publicPath ? this.options.build.publicPath