37 lines
726 B
JavaScript
37 lines
726 B
JavaScript
import { baseConfig } from './base';
|
|
import { addLicenseBanner } from './helpers/licenseBanner';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
const minFilename = 'vue-handsontable.min.js';
|
|
|
|
const minConfig = {
|
|
output: {
|
|
format: 'umd',
|
|
name: 'Handsontable.vue',
|
|
indent: false,
|
|
sourcemap: true,
|
|
file: `./dist/${minFilename}`,
|
|
exports: 'named',
|
|
globals: {
|
|
vue: 'Vue',
|
|
'handsontable/base': 'Handsontable'
|
|
}
|
|
},
|
|
plugins: baseConfig.plugins.concat([
|
|
terser({
|
|
output: {
|
|
comments: /^!/
|
|
},
|
|
compress: {
|
|
pure_getters: true,
|
|
unsafe: true,
|
|
unsafe_comps: true,
|
|
}
|
|
})
|
|
])
|
|
};
|
|
|
|
addLicenseBanner(minConfig);
|
|
|
|
export { minConfig };
|