1
0
mirror of synced 2024-11-29 08:06:03 +03:00
select2/rollup.config.js

29 lines
816 B
JavaScript
Raw Normal View History

2019-06-26 01:23:14 +03:00
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import scss from 'rollup-plugin-scss';
import typescript from 'rollup-plugin-typescript';
import { uglify } from 'rollup-plugin-uglify';
2019-06-27 18:42:41 +03:00
const license = require('rollup-plugin-license');
const path = require('path');
2019-06-26 01:23:14 +03:00
export default [
// browser-friendly UMD build
{
input: 'bridge/src/select25.tsx',
output: {
name: 'select25',
file: 'dist/select25.js',
format: 'umd',
sourcemap: true
},
2019-06-27 18:42:41 +03:00
plugins: [
resolve(),
commonjs(),
typescript(),
uglify(),
scss(),
license({ banner: { file: path.join(__dirname, 'BANNER.txt'), encoding: 'utf-8' } })
]
2019-06-26 01:23:14 +03:00
}
];