This commit is contained in:
mike
2025-12-15 22:42:52 +01:00
parent 0c2e39749f
commit e135fe4822
8 changed files with 122 additions and 28 deletions

View File

@@ -1,13 +1,13 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const { merge } = require('webpack-merge')
const common = require('./webpack.common.js')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyPlugin = require('copy-webpack-plugin')
module.exports = merge(common, {
mode: 'production',
mode : 'production',
plugins: [
new HtmlWebpackPlugin({
template: './index.html',
template: './index.html'
}),
new CopyPlugin({
patterns: [
@@ -19,8 +19,8 @@ module.exports = merge(common, {
{ from: 'robots.txt', to: 'robots.txt' },
{ from: 'icon.png', to: 'icon.png' },
{ from: '404.html', to: '404.html' },
{ from: 'site.webmanifest', to: 'site.webmanifest' },
],
}),
],
});
{ from: 'site.webmanifest', to: 'site.webmanifest' }
]
})
]
})