mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
use umd for cjs build size check
This commit is contained in:
parent
9d5d4671e0
commit
ae881f514b
@ -48,8 +48,11 @@ rollup.rollup({
|
||||
]
|
||||
})
|
||||
}).then(function (bundle) {
|
||||
// use UMD to wrap the code so that variable names are mangled
|
||||
// for proper minification size.
|
||||
var code = bundle.generate({
|
||||
format: 'cjs'
|
||||
format: 'umd',
|
||||
moduleName: 'Vue'
|
||||
}).code
|
||||
return write('dist/vue.common.min.js', uglify.minify(code, {
|
||||
fromString: true,
|
||||
|
Loading…
Reference in New Issue
Block a user