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