build: add esm browser prod build

This commit is contained in:
Evan You 2018-12-05 17:46:28 -05:00
parent 861abf4bb9
commit 63f5c6e9f1

View File

@ -84,7 +84,7 @@ const builds = {
banner
},
// Runtime+compiler ES modules build (for direct import in browser)
'web-full-esm-browser': {
'web-full-esm-browser-dev': {
entry: resolve('web/entry-runtime-with-compiler.js'),
dest: resolve('dist/vue.esm.browser.js'),
format: 'es',
@ -93,6 +93,16 @@ const builds = {
alias: { he: './entity-decoder' },
banner
},
// Runtime+compiler ES modules build (for direct import in browser)
'web-full-esm-browser-prod': {
entry: resolve('web/entry-runtime-with-compiler.js'),
dest: resolve('dist/vue.esm.browser.min.js'),
format: 'es',
transpile: false,
env: 'production',
alias: { he: './entity-decoder' },
banner
},
// runtime-only build (Browser)
'web-runtime-dev': {
entry: resolve('web/entry-runtime.js'),