Skip to content

Commit

Permalink
Fixed the root paths for referenced images via webpack.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Knopf authored and Paul Knopf committed Mar 6, 2016
1 parent 831bca5 commit cadb35b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/React/Scripts/webpack/dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = {
},
output: {
filename: '[name].generated.js',
libraryTarget: 'this'
libraryTarget: 'this',
publicPath: '/pack/'
},
plugins: [
new webpack.DefinePlugin({
Expand All @@ -44,7 +45,8 @@ module.exports = {
},
output: {
filename: '[name].generated.js',
libraryTarget: 'this'
libraryTarget: 'this',
publicPath: '/pack/'
},
plugins: [
extractCSS,
Expand Down
6 changes: 4 additions & 2 deletions src/React/Scripts/webpack/prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = {
},
output: {
filename: '[name].generated.js',
libraryTarget: 'this'
libraryTarget: 'this',
publicPath: '/pack/'
},
plugins: [
new webpack.optimize.DedupePlugin(),
Expand Down Expand Up @@ -54,7 +55,8 @@ module.exports = {
},
output: {
filename: '[name].generated.js',
libraryTarget: 'this'
libraryTarget: 'this',
publicPath: '/pack/'
},
plugins: [
extractCSS,
Expand Down

0 comments on commit cadb35b

Please sign in to comment.