Browse Source

update build script and npm files

Evan You 10 years ago
parent
commit
27033b7589
2 changed files with 6 additions and 4 deletions
  1. 4 4
      build/build.js
  2. 2 0
      package.json

+ 4 - 4
build/build.js

@@ -26,7 +26,7 @@ var main = fs
 fs.writeFileSync('src/core/index.js', main)
 
 var builds = [
-  // Runtime only, CommonJS build. Used by bundlers e.g. Webpack & Browserify
+  // Runtime only (CommonJS). Used by bundlers e.g. Webpack & Browserify
   {
     entry: 'src/entries/web-runtime.js',
     format: 'cjs',
@@ -61,14 +61,14 @@ var builds = [
       entities: './entity-decoder'
     }
   },
-  // Web compiler CommonJS build, for npm distribution.
+  // Web compiler (CommonJS).
   {
     entry: 'src/entries/web-compiler.js',
     format: 'cjs',
     external: ['entities'],
-    out: 'dist/compiler.common.js'
+    out: 'dist/compiler.js'
   },
-  // Web server renderer
+  // Web server renderer (CommonJS).
   {
     entry: 'src/entries/web-server-renderer.js',
     format: 'cjs',

+ 2 - 0
package.json

@@ -7,6 +7,8 @@
     "dist/vue.common.js",
     "dist/vue.js",
     "dist/vue.min.js",
+    "dist/compiler.js",
+    "dist/server-renderer.js",
     "src"
   ],
   "scripts": {