ujs/rollup.config.js

18 lines
351 B
JavaScript

import terser from '@rollup/plugin-terser';
import pkg from './package.json' assert { type: 'json' };
export default {
input: 'src/main.js',
output: [
{
file: `dist/engine-${pkg.version}.js`,
format: 'es',
},
{
file: `dist/engine-${pkg.version}.min.js`,
format: 'es',
plugins: [terser()],
},
],
};