blog/themes/flex/static/bower_components/reframe.js/rollup.config.js

30 lines
650 B
JavaScript

import babel from 'rollup-plugin-babel';
import eslint from 'rollup-plugin-eslint';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import uglify from 'rollup-plugin-uglify';
export default {
entry: 'src/reframe.js',
dest: 'dist/reframe.js',
format: 'umd',
moduleName: 'reframe',
sourceMap: false, // removes the souremap at the bottom of the file
plugins: [
resolve({
jsnext: true,
main: true,
browser: true,
}),
commonjs(),
eslint({
exclude: [
'src/styles/**'
]
}),
babel({
exclude: 'node_modules/**',
}),
],
};