diff --git a/build/rollup.config.js b/build/rollup.config.js index 3988671..8afac32 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -5,10 +5,9 @@ import babel from 'rollup-plugin-babel' export default { input: 'build/entry.js', - // input: 'src/index.js', output: { format: 'umd', - file: 'dist/datav.map.js', + file: 'dist/datav.map.vue.js', name: 'datav' }, plugins: [ diff --git a/build/rollup.terser.config.js b/build/rollup.terser.config.js new file mode 100644 index 0000000..32c8738 --- /dev/null +++ b/build/rollup.terser.config.js @@ -0,0 +1,24 @@ +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: [ + terser(), + resolve(), + babel({ + exclude: 'node_modules/**' + }), + commonjs(), + vue(), + ], + external: ['Vue'] +} \ No newline at end of file