Skip to content

Instantly share code, notes, and snippets.

@SuryaSankar
Created April 3, 2021 07:43
Show Gist options
  • Save SuryaSankar/f06c7026460f20c0d837e3a6bf1f83df to your computer and use it in GitHub Desktop.
Save SuryaSankar/f06c7026460f20c0d837e3a6bf1f83df to your computer and use it in GitHub Desktop.
import { terser } from "rollup-plugin-terser";
import scss from 'rollup-plugin-scss'
import pkg from './package.json';
export default {
input: 'src/js/index.js',
plugins: [
terser(),
scss({
output: 'dist/listree.min.css',
outputStyle: "compressed"
}),
],
output: [
{
name: 'listree',
file: pkg.browser,
format: 'umd',
},
{
file: pkg.module,
format: 'es'
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment