-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
52 lines (51 loc) · 1.06 KB
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const resolve = require('rollup-plugin-node-resolve');
const vue = require('rollup-plugin-vue');
const commonjs = require('rollup-plugin-commonjs');
const buble = require('rollup-plugin-buble');
const scss = require('rollup-plugin-scss');
const { terser } = require('rollup-plugin-terser');
export default {
input: 'src/index.js',
output: [
{
file: 'lib/v-inline-editor.esm.js',
name: 'VueInlineEditor',
format: 'es',
globals: {
vue: 'Vue'
}
},
{
file: 'lib/v-inline-editor.cjs.js',
name: 'VueInlineEditor',
format: 'cjs',
globals: {
vue: 'Vue'
}
},
{
file: 'lib/v-inline-editor.umd.js',
name: 'VueInlineEditor',
format: 'umd',
globals: {
vue: 'Vue'
}
}
],
external: [ 'vue' ],
plugins: [
resolve({
extensions: ['.js', '.css', '.scss', '.vue']
}),
commonjs(),
vue({
compileTemplate: true,
css: false
}),
scss({
output: 'lib/v-inline-editor.css'
}),
buble(),
terser()
]
};