diff --git a/webpack/webpack.config.dev-client.js b/webpack/webpack.config.dev-client.js index a204e07fa..b5dfda4e7 100755 --- a/webpack/webpack.config.dev-client.js +++ b/webpack/webpack.config.dev-client.js @@ -59,7 +59,7 @@ module.exports = { loaders: commonLoaders }, resolve: { - root: [appDir, appPath], + root: [appDir, appPath, path.join(__dirname, "..")], extensions: ["", ".js", ".jsx", ".css"] }, plugins: [ diff --git a/webpack/webpack.config.dev-server.js b/webpack/webpack.config.dev-server.js index 452a04ed9..81672096b 100755 --- a/webpack/webpack.config.dev-server.js +++ b/webpack/webpack.config.dev-server.js @@ -6,9 +6,6 @@ const assetsPath = path.join(appDir, "static", "assets"); const publicPath = "/assets/"; const appPath = path.join(appDir, "app"); -console.log("appDir:", appDir); -console.log("myPath:", __dirname); - const commonLoaders = [ { test: /\.js$|\.jsx$/, @@ -45,7 +42,7 @@ module.exports = { loaders: commonLoaders }, resolve: { - root: [appDir, appPath], + root: [appDir, appPath, path.join(__dirname, "..")], extensions: ["", ".js", ".jsx", ".css"] }, plugins: [ diff --git a/webpack/webpack.config.prod.js b/webpack/webpack.config.prod.js index 113bf49dc..52a8b3d96 100755 --- a/webpack/webpack.config.prod.js +++ b/webpack/webpack.config.prod.js @@ -62,7 +62,7 @@ module.exports = [ loaders: commonLoaders }, resolve: { - root: [appDir, appPath], + root: [appDir, appPath, path.join(__dirname, "..")], extensions: ["", ".js", ".jsx", ".css"] }, plugins: [ @@ -89,7 +89,7 @@ module.exports = [ loaders: commonLoaders }, resolve: { - root: [appDir, appPath], + root: [appDir, appPath, path.join(__dirname, "..")], extensions: ["", ".js", ".jsx", ".css"] }, plugins: [