uhr/rollup.config-libs.js

24 lines
510 B
JavaScript
Raw Normal View History

import {terser} from 'rollup-plugin-terser';
import {nodeResolve} from '@rollup/plugin-node-resolve';
export default {
input: {
'libs': 'src/main-libs.js'
},
output: [
{
dir: 'dist',
entryFileNames: '[name].js',
format: 'cjs'
},
{
dir: 'dist',
entryFileNames: '[name].min.js',
format: 'cjs',
plugins: [terser()]
}
],
context: 'this',
plugins: [nodeResolve()]
}