UNPKG

moy-dom

Version:

A flexiable Virtual DOM library for building modern web interface.

83 lines (81 loc) 1.51 kB
import babel from 'rollup-plugin-babel'; import { uglify } from 'rollup-plugin-uglify'; import { minify } from 'uglify-es'; import replace from 'rollup-plugin-replace' import { version } from '../package.json' const banner = `/** * moy-dom v${version} * (jp) ${new Date().getFullYear()} murakami * @license MIT */` export default [ { input: './src/index.js', output:{ file: './dist/moy-dom.common.js', format: 'umd', name: 'moyDom', banner, }, plugins: [ babel({ exclude: 'node_modules/**', }), replace({ __VERSION__: version, }), ], }, { input: './src/index.js', output:{ file: './dist/moy-dom.common.min.js', format: 'umd', name: 'moyDom', banner, }, plugins: [ babel({ exclude: 'node_modules/**', }), uglify(), replace({ __VERSION__: version, }), ], }, { input: './src/index.js', output:{ file: './dist/moy-dom.esm.js', format: 'es', banner, }, plugins: [ babel({ exclude: 'node_modules/**', }), replace({ __VERSION__: version, }), ], }, { input: './src/index.js', output:{ file: './dist/moy-dom.esm.min.js', format: 'es', banner, }, plugins: [ babel({ exclude: 'node_modules/**', }), uglify({},minify), replace({ __VERSION__: version, }), ], }, ]