Jony/typecho/write/rollup.config.js
2021-06-04 09:49:30 +08:00

12 lines
289 B
JavaScript

import { nodeResolve } from '@rollup/plugin-node-resolve';
import uglify from '@lopatnov/rollup-plugin-uglify';
export default {
input: './js/index.js',
output: {
file: './dist/index.bundle.js',
format: 'iife',
inlineDynamicImports: true
},
plugins: [nodeResolve(), uglify()]
};