Skip to content

Commit

Permalink
feat: add in-browser build for vue-template-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Oct 2, 2017
1 parent f15c56b commit a5e5b31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ const builds = {
format: 'cjs',
external: Object.keys(require('../packages/vue-template-compiler/package.json').dependencies)
},
// Web compiler (UMD for in-browser use).
'web-compiler-browser': {
entry: resolve('web/entry-compiler.js'),
dest: resolve('packages/vue-template-compiler/browser.js'),
format: 'umd',
env: 'development',
moduleName: 'VueTemplateCompiler',
plugins: [node(), cjs()]
},
// Web server renderer (CommonJS).
'web-server-renderer': {
entry: resolve('web/entry-server-renderer.js'),
Expand Down
3 changes: 3 additions & 0 deletions packages/vue-template-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "2.4.4",
"description": "template compiler for Vue 2.0",
"main": "index.js",
"unpkg": "browser.js",
"jsdelivr": "browser.js",
"browser": "browser.js",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/vue.git"
Expand Down

0 comments on commit a5e5b31

Please sign in to comment.