Skip to content

Commit

Permalink
fix(): Add leading slash to production asset references in index.html
Browse files Browse the repository at this point in the history
Currently, production assets are referenced as js/main.1234.js, which breaks for apps that use

pushstate. This change adds the leading slash.
  • Loading branch information
peterszerzo committed Jan 5, 2017
1 parent 2d219e5 commit 8b775c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ module.exports = {
// The build folder.
path: paths.dist,

// Append leading slash when production assets are referenced in the html.
publicPath: '/',

// Generated JS files.
filename: 'js/[name].[chunkhash:8].js'
},
Expand Down

0 comments on commit 8b775c3

Please sign in to comment.