update build process

This commit is contained in:
jiaming743
2019-09-03 11:07:45 +08:00
parent 170facb3fc
commit a1d7d4626d
7 changed files with 23963 additions and 3 deletions

22
build/rollup.config.js Normal file
View File

@@ -0,0 +1,22 @@
import resolve from 'rollup-plugin-node-resolve'
import vue from 'rollup-plugin-vue'
import commonjs from 'rollup-plugin-commonjs'
import babel from 'rollup-plugin-babel'
export default {
input: 'build/entry.js',
output: {
format: 'umd',
file: 'dist/datav.map.js',
name: 'datav'
},
plugins: [
resolve(),
babel({
exclude: 'node_modules/**'
}),
commonjs(),
vue(),
],
external: ['Vue']
}