animate.css/rollup.config.js
2024-09-15 19:12:41 +01:00

29 lines
598 B
JavaScript

const commonjs = require('@rollup/plugin-commonjs');
const resolve = require('@rollup/plugin-node-resolve');
const terser = require('@rollup/plugin-terser');
module.exports = {
input: 'js/index.js',
output: [
{
file: 'animate-css.cjs',
format: 'cjs',
},
{
file: 'animate-css.mjs',
format: 'es',
},
{
file: 'animate-css.js',
format: 'umd',
name: 'AnimateCss',
},
{
file: 'animate-css.min.js',
format: 'umd',
name: 'AnimateCss',
plugins: [terser()],
},
],
plugins: [resolve(), commonjs()],
};