uhr/build-config/rollup.config.js-libs.js

22 lines
501 B
JavaScript
Raw Permalink Normal View History

import {terser} from 'rollup-plugin-terser';
import {nodeResolve} from '@rollup/plugin-node-resolve';
export default {
input: 'build-config/entrypoints/js-libs.js',
output: [
{
dir: 'dist',
2021-02-24 13:45:07 +01:00
entryFileNames: 'libs.js',
format: 'cjs'
},
{
dir: 'dist',
2021-02-24 13:45:07 +01:00
entryFileNames: 'libs.min.js',
format: 'cjs',
plugins: [terser()]
}
],
context: 'this',
plugins: [nodeResolve()]
}