Minify ncc'd packages for download speed (#8341)

This commit is contained in:
Joe Haddad 2019-08-12 17:31:07 -04:00 committed by GitHub
parent 9993092ddd
commit bc9f2b6139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 =>