2019-09-10 15:11:09 +08:00
|
|
|
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'
|
|
|
|
import { terser } from "rollup-plugin-terser"
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input: 'build/entry.js',
|
|
|
|
output: {
|
|
|
|
format: 'umd',
|
|
|
|
file: 'dist/datav.min.vue.js',
|
|
|
|
name: 'datav'
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
resolve(),
|
|
|
|
babel({
|
|
|
|
exclude: 'node_modules/**'
|
|
|
|
}),
|
|
|
|
commonjs(),
|
|
|
|
vue(),
|
2019-09-24 16:33:14 +08:00
|
|
|
terser(),
|
2019-09-10 15:11:09 +08:00
|
|
|
],
|
|
|
|
external: ['Vue']
|
|
|
|
}
|