ujs/rollup.config.js

18 lines
351 B
JavaScript
Raw Normal View History

2023-11-14 00:16:47 +03:00
import terser from '@rollup/plugin-terser';
2023-05-10 01:28:36 +03:00
import pkg from './package.json' assert { type: 'json' };
export default {
input: 'src/main.js',
2023-11-14 00:16:47 +03:00
output: [
{
file: `dist/engine-${pkg.version}.js`,
format: 'es',
},
{
file: `dist/engine-${pkg.version}.min.js`,
format: 'es',
plugins: [terser()],
},
],
2023-05-10 01:28:36 +03:00
};