Minify ncc'd packages for download speed (#8341)
This commit is contained in:
parent
9993092ddd
commit
bc9f2b6139
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ module.exports = function (task) {
|
|||
return ncc(join(__dirname, file.dir, file.base), {
|
||||
// cannot bundle
|
||||
externals: ['chokidar'],
|
||||
minify: true,
|
||||
...options
|
||||
}).then(({ code, assets }) => {
|
||||
Object.keys(assets).forEach(key =>
|
||||
|
|
Loading…
Reference in a new issue