Updated webpack so dist folder now lives at project root.

This commit is contained in:
2020-10-22 13:36:21 +02:00
parent d5f3a7a1f0
commit 794a2b06e4

View File

@@ -17,10 +17,9 @@ const environment = isProd
const webpackConfig = merge(commonConfig(false), {
mode: "production",
output: {
path: helpers.root("public/dist"),
path: helpers.root("dist"),
publicPath: "/dist/",
filename: "js/[name].bundle.[hash:7].js"
//filename: "js/[name].bundle.js"
},
optimization: {
splitChunks: {
@@ -51,7 +50,6 @@ const webpackConfig = merge(commonConfig(false), {
new webpack.EnvironmentPlugin(environment),
new MiniCSSExtractPlugin({
filename: "css/[name].[hash:7].css"
//filename: "css/[name].css"
})
]
});