13 lines
335 B
JavaScript
13 lines
335 B
JavaScript
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
import { terser } from 'rollup-plugin-terser';
|
|
export default {
|
|
input: './js/index.js',
|
|
output: {
|
|
file: './dist/index.bundle.js',
|
|
format: 'iife',
|
|
inlineDynamicImports: true,
|
|
minify: true
|
|
},
|
|
plugins: [nodeResolve(), terser({ compress: { drop_console: true } })]
|
|
};
|