2016-09-15 17:16:42 +00:00
|
|
|
import uglify from 'rollup-plugin-uglify';
|
2017-01-13 13:23:15 +00:00
|
|
|
import { minify } from 'uglify-js';
|
|
|
|
import babel from 'rollup-plugin-babel';
|
2016-09-15 17:16:42 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
entry: 'lib/frontexpress.js',
|
2017-01-13 13:23:15 +00:00
|
|
|
format: 'iife',
|
2016-09-15 17:16:42 +00:00
|
|
|
sourceMap: true,
|
|
|
|
moduleName:'frontexpress',
|
2017-01-13 13:23:15 +00:00
|
|
|
dest: 'frontexpress.min.js',
|
|
|
|
plugins: [
|
|
|
|
babel({
|
|
|
|
babelrc: false,
|
|
|
|
// exclude: 'node_modules/**',
|
|
|
|
presets: ['es2015-rollup'],
|
|
|
|
// externalHelpers: true,
|
|
|
|
// plugins: ['external-helpers']
|
|
|
|
}),
|
|
|
|
uglify({
|
|
|
|
compress: {
|
|
|
|
warnings: false,
|
|
|
|
},
|
|
|
|
output: {
|
|
|
|
comments: false
|
|
|
|
}
|
|
|
|
}, minify)
|
|
|
|
]
|
|
|
|
};
|