Jony/typecho/write/rollup.config.js

13 lines
335 B
JavaScript
Raw Normal View History

2021-03-25 09:05:46 +00:00
import { nodeResolve } from '@rollup/plugin-node-resolve';
2021-06-11 01:12:58 +00:00
import { terser } from 'rollup-plugin-terser';
2021-03-25 09:05:46 +00:00
export default {
2021-06-01 08:48:04 +00:00
input: './js/index.js',
2021-04-22 02:45:37 +00:00
output: {
2021-06-04 01:49:30 +00:00
file: './dist/index.bundle.js',
format: 'iife',
2021-06-11 01:12:58 +00:00
inlineDynamicImports: true,
minify: true
2021-04-22 02:45:37 +00:00
},
2021-06-11 01:12:58 +00:00
plugins: [nodeResolve(), terser({ compress: { drop_console: true } })]
2021-03-25 09:05:46 +00:00
};