Fix missing base url option in webpack production config

This commit is contained in:
Wu Cheng-Han 2016-12-13 02:26:19 +08:00
parent 159be6a7c7
commit 8095f8cc98
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ module.exports = [Object.assign({}, baseConfig, {
output: { output: {
path: path.join(__dirname, 'public/build'), path: path.join(__dirname, 'public/build'),
publicPath: '/build/', publicPath: '/build/',
filename: '[id].[name].[hash].js' filename: '[id].[name].[hash].js',
baseUrl: '<%- url %>'
} }
}), { }), {
entry: { entry: {