24 lines
510 B
JavaScript
24 lines
510 B
JavaScript
|
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()]
|
||
|
}
|