webpack: Fix production setting of publicPath.

This is needed by webpack asynchronous require.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-06-29 02:59:29 -07:00
parent 05663aa3fa
commit 9f074fc071
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ export default (env?: string): webpack.Configuration => {
},
output: {
path: resolve(__dirname, '../static/webpack-bundles'),
publicPath: '/static/webpack-bundles/',
filename: production ? '[name].[chunkhash].js' : '[name].js',
},
resolve: {