From cadb35b8666a52f568d3976d0477e8675a4ef2de Mon Sep 17 00:00:00 2001 From: Paul Knopf Date: Sun, 6 Mar 2016 12:42:50 -0500 Subject: [PATCH] Fixed the root paths for referenced images via webpack. --- src/React/Scripts/webpack/dev.config.js | 6 ++++-- src/React/Scripts/webpack/prod.config.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/React/Scripts/webpack/dev.config.js b/src/React/Scripts/webpack/dev.config.js index 3b13749..d87622c 100644 --- a/src/React/Scripts/webpack/dev.config.js +++ b/src/React/Scripts/webpack/dev.config.js @@ -17,7 +17,8 @@ module.exports = { }, output: { filename: '[name].generated.js', - libraryTarget: 'this' + libraryTarget: 'this', + publicPath: '/pack/' }, plugins: [ new webpack.DefinePlugin({ @@ -44,7 +45,8 @@ module.exports = { }, output: { filename: '[name].generated.js', - libraryTarget: 'this' + libraryTarget: 'this', + publicPath: '/pack/' }, plugins: [ extractCSS, diff --git a/src/React/Scripts/webpack/prod.config.js b/src/React/Scripts/webpack/prod.config.js index 203128a..4a6d9e1 100644 --- a/src/React/Scripts/webpack/prod.config.js +++ b/src/React/Scripts/webpack/prod.config.js @@ -17,7 +17,8 @@ module.exports = { }, output: { filename: '[name].generated.js', - libraryTarget: 'this' + libraryTarget: 'this', + publicPath: '/pack/' }, plugins: [ new webpack.optimize.DedupePlugin(), @@ -54,7 +55,8 @@ module.exports = { }, output: { filename: '[name].generated.js', - libraryTarget: 'this' + libraryTarget: 'this', + publicPath: '/pack/' }, plugins: [ extractCSS,