Skip to content

Commit

Permalink
Fix Webpack publicPath for production builds, fixes #119
Browse files Browse the repository at this point in the history
Previous value `/dist/` would cause static assets to be searched for in
`file:///dist/...` (root of fs), instead of in the `dist/` directory
relative to `app/index.html`.
  • Loading branch information
pascalw committed Jan 14, 2016
1 parent 2989a02 commit 623f4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.production.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config.devtool = 'source-map';

config.entry = './app/index';

config.output.publicPath = '/dist/';
config.output.publicPath = '../dist/';

config.module.loaders.push({
test: /^((?!\.module).)*\.css$/,
Expand Down

0 comments on commit 623f4fd

Please sign in to comment.