-
Notifications
You must be signed in to change notification settings - Fork 1
/
rollup.config.pinkflag.js
46 lines (45 loc) · 1.18 KB
/
rollup.config.pinkflag.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
import typescript from 'rollup-plugin-typescript2';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import styles from "rollup-plugin-styles";
import ejs from 'rollup-plugin-ejs';
import { terser } from "rollup-plugin-terser";
export default [
{
input: 'src/themes/pinkFlag/index.ts',
output: [
{
file: 'lib/umd/YuanPlayerThemePinkFlag.js',
format: 'umd',
name: 'YuanPlayerThemePinkFlag'
},
{
file: 'lib/mjs/YuanPlayerThemePinkFlag.js',
format: 'es',
},
{
file: 'lib/cjs/YuanPlayerThemePinkFlag.js',
format: 'cjs',
},
{
file: 'lib/umd/YuanPlayerThemePinkFlag.min.js',
format: 'umd',
name: 'YuanPlayerThemePinkFlag',
plugins: [terser()]
},
{
file: 'lib/mjs/YuanPlayerThemePinkFlag.min.js',
format: 'es',
plugins: [terser()]
},
{
file: 'lib/cjs/YuanPlayerThemePinkFlag.min.js',
format: 'cjs',
plugins: [terser()]
},
],
plugins: [styles(), nodeResolve({browser:true}), ejs({
include: ['**/*.ejs', '**/*.html'],
inlineStyles: false
}), typescript()]
},
];