mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 03:57:36 +08:00
remove vue.common.js (just use umd build)
This commit is contained in:
parent
8609d4aafb
commit
599e38edb0
@ -19,46 +19,27 @@ var main = fs
|
||||
.replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'")
|
||||
fs.writeFileSync('src/index.js', main)
|
||||
|
||||
// CommonJS build.
|
||||
// this is used as the "main" field in package.json
|
||||
// and used by bundlers like Webpack and Browserify.
|
||||
// Dev build
|
||||
rollup.rollup({
|
||||
entry: 'src/index.js',
|
||||
plugins: [
|
||||
replace({
|
||||
'process.env.NODE_ENV': "'development'"
|
||||
}),
|
||||
babel({
|
||||
loose: 'all'
|
||||
})
|
||||
]
|
||||
})
|
||||
.then(function (bundle) {
|
||||
return write('dist/vue.common.js', bundle.generate({
|
||||
format: 'cjs',
|
||||
banner: banner
|
||||
return write('dist/vue.js', bundle.generate({
|
||||
format: 'umd',
|
||||
banner: banner,
|
||||
moduleName: 'Vue'
|
||||
}).code)
|
||||
})
|
||||
// Standalone Dev Build
|
||||
.then(function () {
|
||||
return rollup.rollup({
|
||||
entry: 'src/index.js',
|
||||
plugins: [
|
||||
replace({
|
||||
'process.env.NODE_ENV': "'development'"
|
||||
}),
|
||||
babel({
|
||||
loose: 'all'
|
||||
})
|
||||
]
|
||||
})
|
||||
.then(function (bundle) {
|
||||
return write('dist/vue.js', bundle.generate({
|
||||
format: 'umd',
|
||||
banner: banner,
|
||||
moduleName: 'Vue'
|
||||
}).code)
|
||||
})
|
||||
})
|
||||
.then(function () {
|
||||
// Standalone Production Build
|
||||
// Production build
|
||||
return rollup.rollup({
|
||||
entry: 'src/index.js',
|
||||
plugins: [
|
||||
|
9428
dist/vue.common.js
vendored
9428
dist/vue.common.js
vendored
File diff suppressed because it is too large
Load Diff
@ -9,9 +9,8 @@
|
||||
"browser",
|
||||
"framework"
|
||||
],
|
||||
"main": "dist/vue.common.js",
|
||||
"main": "dist/vue.js",
|
||||
"files": [
|
||||
"dist/vue.common.js",
|
||||
"dist/vue.js",
|
||||
"dist/vue.min.js",
|
||||
"src"
|
||||
|
Loading…
Reference in New Issue
Block a user