mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-08 14:24:03 +08:00
chore: 代码格式化
This commit is contained in:
parent
096a9559ab
commit
011f3f3fbf
@ -5,22 +5,25 @@ const path = require('path')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: './',
|
publicPath: './',
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
chainWebpack: config => {
|
chainWebpack: (config) => {
|
||||||
config.optimization
|
config.optimization.minimizer('uglify-plugin').use(UglifyJsPlugin, [
|
||||||
.minimizer('uglify-plugin')
|
{
|
||||||
.use(UglifyJsPlugin, [{
|
|
||||||
uglifyOptions: {
|
uglifyOptions: {
|
||||||
drop_console: false,
|
drop_console: false,
|
||||||
drop_debugger: false,
|
drop_debugger: false,
|
||||||
pure_funcs: ['console.log']
|
pure_funcs: ['console.log']
|
||||||
}
|
}
|
||||||
}])
|
}
|
||||||
config.plugin('copy-plugin')
|
])
|
||||||
.use(CopyPlugin, [{
|
config.plugin('copy-plugin').use(CopyPlugin, [
|
||||||
patterns: [{
|
{
|
||||||
|
patterns: [
|
||||||
|
{
|
||||||
from: path.join(__dirname, 'README.md'),
|
from: path.join(__dirname, 'README.md'),
|
||||||
to: path.join(__dirname, 'dist', 'README.md'),
|
to: path.join(__dirname, 'dist', 'README.md')
|
||||||
}],
|
}
|
||||||
}])
|
]
|
||||||
},
|
}
|
||||||
|
])
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user