Browse Source

build: add esm browser prod build

dev
Evan You 6 years ago
parent
commit
63f5c6e9f1
  1. 12
      scripts/config.js

12
scripts/config.js

@ -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'),

Loading…
Cancel
Save