Browse Source

Fixed webpack output folders

update-deps
Alex Mikhalev 8 years ago
parent
commit
a348a45e51
  1. 4
      webpack/dev.config.js
  2. 4
      webpack/prod.config.js

4
webpack/dev.config.js

@ -11,7 +11,7 @@ module.exports = {
], ],
devtool: "inline-source-map", devtool: "inline-source-map",
output: { output: {
path: path.resolve(__dirname, "build"), path: path.resolve(__dirname, "../build"),
filename: "bundle.js" filename: "bundle.js"
}, },
resolve: { resolve: {
@ -37,4 +37,4 @@ module.exports = {
devServer: { devServer: {
hot: true hot: true
} }
}; };

4
webpack/prod.config.js

@ -8,7 +8,7 @@ module.exports = {
], ],
devtool: "none", devtool: "none",
output: { output: {
path: path.resolve(__dirname, "dist"), path: path.resolve(__dirname, "../dist"),
filename: "bundle.js" filename: "bundle.js"
}, },
resolve: { resolve: {
@ -29,4 +29,4 @@ module.exports = {
template: "./app/index.html" template: "./app/index.html"
}) })
] ]
}; };

Loading…
Cancel
Save