-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
40 lines (39 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
import commonjs from '@rollup/plugin-commonjs'
import postcss from 'rollup-plugin-postcss'
// import autoprefixer from 'autoprefixer'
import { terser } from 'rollup-plugin-terser'
import notify from 'rollup-plugin-notify'
// import progress from 'rollup-plugin-progress'
// import { sizeSnapshot } from 'rollup-plugin-size-snapshot'
// import { eslint } from 'rollup-plugin-eslint'
// import analyze from 'rollup-plugin-analyzer'
import html from 'rollup-plugin-html'
import pkg from './package.json'
export default {
input: `src/components/button-element/index.js`,
output: [{
file: pkg.browser,
format: `umd`,
name: `Built`
}, {
file: pkg.main,
format: `cjs`,
name: `Built`
}, {
file: pkg.module,
format: `es`,
}],
plugins: [
// sizeSnapshot(),
html({
include: `**/*.html`
}),
postcss({ extract: true, use: [`sass`] }),
commonjs(),
// eslint(),
terser(),
notify(),
// progress(),
// analyze()
]
}