UNPKG

react-pageflip

Version:

Simple React.js wrapper for StPageFlip library, for creating realistic and beautiful page turning effect

29 lines (27 loc) 689 B
import autoprefixer from 'autoprefixer'; import postcss from 'rollup-plugin-postcss'; import { terser } from 'rollup-plugin-terser'; import typescript from 'rollup-plugin-typescript2'; export default { external: ['react', 'react-dom'], input: 'src/index.ts', watch: { include: 'src/**', }, output: [ { // file: '../../..//index.js', file: 'build/index.js', format: 'esm', sourcemap: true, }, ], plugins: [ typescript({ useTsconfigDeclarationDir: true }), postcss({ plugins: [autoprefixer()], minimize: true, }), terser(), ], };