scrollfeather
Version:
A lightweight and smooth scrolling library. Works for both full-page and container-based scrolling also supports all devices.
22 lines (21 loc) • 554 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import terser from '@rollup/plugin-terser';
export default {
input: 'src/featherScroll.js', // Path to your main source file
output: [
{
file: 'dist/featherScroll.esm.js',
format: 'esm',
sourcemap: true,
},
{
file: 'dist/featherScroll.min.js',
format: 'iife',
name: 'FeatherScroll',
sourcemap: true,
plugins: [terser()],
}
],
plugins: [resolve(), commonjs()]
};