-
-
Notifications
You must be signed in to change notification settings - Fork 166
Expand file tree
/
Copy pathrollup.config.js
More file actions
24 lines (23 loc) · 745 Bytes
/
rollup.config.js
File metadata and controls
24 lines (23 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import typescript from 'rollup-plugin-typescript2';
import postcss from 'rollup-plugin-postcss';
import { terser } from 'rollup-plugin-terser';
export default [
{
input: 'src/PageFlip.ts',
output: [{ file: 'dist/js/page-flip.browser.js', format: 'umd', name: 'St' }],
plugins: [
postcss(),
typescript({ tsconfig: 'tsconfig.json', useTsconfigDeclarationDir: true }),
terser(),
],
},
{
input: 'src/PageFlip.ts',
output: [{ file: 'dist/js/page-flip.module.js', format: 'es' }],
plugins: [
postcss(),
typescript({ tsconfig: 'tsconfig.json', useTsconfigDeclarationDir: true }),
terser(),
],
},
];