cache busting

This commit is contained in:
realaravinth
2021-04-09 13:21:50 +05:30
parent d7b1a9f29b
commit c4255397b1
60 changed files with 873 additions and 716 deletions

View File

@@ -7,22 +7,8 @@ module.exports = merge(common, {
mode: 'development',
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, 'static'),
},
plugins: [
new HtmlWebpackPlugin({
filename: 'register/index.html',
template: path.resolve(__dirname, 'output/register/', 'index.html'),
}),
new HtmlWebpackPlugin({
filename: 'panel/index.html',
template: path.resolve(__dirname, 'output/panel/', 'index.html'),
}),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'output/', 'index.html'),
}),
],
module: {
rules: [
{
@@ -36,3 +22,21 @@ module.exports = merge(common, {
],
},
});
/*
* plugins: [
new HtmlWebpackPlugin({
filename: 'register/index.html',
template: path.resolve(__dirname, 'output/register/', 'index.html'),
}),
new HtmlWebpackPlugin({
filename: 'panel/index.html',
template: path.resolve(__dirname, 'output/panel/', 'index.html'),
}),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, 'output/', 'index.html'),
}),
],
*/