heti/rollup.config.js

31 lines
552 B
JavaScript
Raw Normal View History

2020-02-21 01:49:22 +08:00
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import {terser} from 'rollup-plugin-terser';
export default {
2020-03-01 23:08:02 +08:00
input: 'js/heti-addon.js',
2020-02-21 01:49:22 +08:00
output: [
{
file: '_site/heti-addon.js',
name: 'Heti',
format: 'umd'
},
{
file: 'dist/heti-addon.min.js',
format: 'umd',
name: 'Heti',
plugins: [
terser({
output: {
comments: false
}
})
]
},
],
plugins: [
resolve(),
commonjs(),
]
};