1
0
This repository has been archived on 2024-03-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
vue-clamp/rollup.config.js
2020-03-28 01:48:18 +08:00

28 lines
489 B
JavaScript

import vue from 'rollup-plugin-vue'
import buble from '@rollup/plugin-buble'
import { terser } from 'rollup-plugin-terser'
import resolve from '@rollup/plugin-node-resolve'
export default {
input: 'src/components/Clamp.js',
output: {
file: 'dist/vue-clamp.js',
name: 'VueClamp',
format: 'umd',
globals: {
vue: 'Vue'
}
},
external: [
'vue'
],
plugins: [
resolve(),
vue({
compileTemplate: true
}),
buble(),
terser()
]
}