-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.mjs
39 lines (38 loc) · 1.1 KB
/
rollup.config.mjs
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
import vue from 'rollup-plugin-vue'
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
// import scss from 'rollup-plugin-scss'
import postcss from 'rollup-plugin-postcss'
import copy from 'rollup-plugin-copy'
export default [
{
input: 'src/index.js',
output: [
{
format: 'esm',
file: 'dist/forge-ui-components.mjs'
},
{
format: 'cjs',
file: 'dist/forge-ui-components.js'
}
],
plugins: [
vue(),
peerDepsExternal(),
postcss({
minimize: false,
modules: false,
use: {
sass: true
},
extract: true
}),
copy({
targets: [
{ src: 'src/stylesheets/ff-colors.scss', dest: 'dist/scss', rename: 'forge-colors.scss' },
{ src: 'src/stylesheets/ff-utility.scss', dest: 'dist/scss', rename: 'forge-variables.scss' }
]
})
]
}
]