Add rollup to provide distributables.

This commit is contained in:
Simon Weidacher
2023-01-31 14:40:16 +01:00
parent a5bc494d2e
commit ffb3e619c8
4 changed files with 101 additions and 2 deletions

18
rollup.config.js Normal file
View File

@@ -0,0 +1,18 @@
import { terser } from "rollup-plugin-terser";
export default {
input : 'index.mjs',
output : [
{
file : 'dist/peasy.js',
name : 'html',
format : 'umd'
},
{
file : 'dist/peasy.min.js',
name : 'html',
format : 'umd',
plugins : [ terser() ]
}
]
}