webpack: dynamic js build on update

This commit is contained in:
2021-08-25 03:35:51 +09:00
parent 90c696776c
commit 3961ff5185
107 changed files with 288 additions and 419 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ module.exports = (env) => {
},
output: {
filename: '[name].js',
path: resolve(__dirname, `${target}/js`)
path: resolve(__dirname, `${target}/dist_js`)
},
mode: 'production',
devtool: 'source-map',
@@ -97,7 +97,7 @@ module.exports = (env) => {
plugins: [
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: '../css/[name].css'
filename: '../dist_css/[name].css'
}),
//new BundleAnalyzerPlugin()
],