Jony/typecho/write/rollup.config.js
2021-06-11 09:12:58 +08:00

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 } })]
};