2018-06-01 16:01:29 -04:00
|
|
|
import babel from 'rollup-plugin-babel';
|
2018-06-06 09:57:40 -04:00
|
|
|
import copy from 'rollup-plugin-copy';
|
2018-06-01 16:01:29 -04:00
|
|
|
import commonjs from 'rollup-plugin-commonjs';
|
|
|
|
import resolve from 'rollup-plugin-node-resolve';
|
|
|
|
|
|
|
|
export default {
|
2018-06-06 09:57:40 -04:00
|
|
|
input: './src/index.js',
|
2018-06-01 16:01:29 -04:00
|
|
|
output: {
|
2018-06-06 09:57:40 -04:00
|
|
|
file: './build/bundle.js',
|
|
|
|
format: 'iife',
|
2018-06-01 16:01:29 -04:00
|
|
|
sourcemap: true,
|
|
|
|
},
|
|
|
|
plugins: [
|
2018-06-06 09:57:40 -04:00
|
|
|
copy({
|
|
|
|
'public/index.html': 'build/index.html',
|
|
|
|
'public/favicon.ico': 'build/favicon.ico',
|
|
|
|
'public/css/bootstrap.css': 'build/css/bootstrap.css',
|
|
|
|
'public/css/app.css': 'build/css/app.css',
|
2018-06-01 16:01:29 -04:00
|
|
|
}),
|
2019-01-11 16:32:52 -05:00
|
|
|
resolve(),
|
|
|
|
commonjs({
|
|
|
|
include: 'node_modules/**',
|
|
|
|
exclude: 'src/**',
|
2018-06-01 16:01:29 -04:00
|
|
|
}),
|
|
|
|
babel({
|
|
|
|
exclude: 'node_modules/**',
|
2019-01-11 16:32:52 -05:00
|
|
|
runtimeHelpers: true,
|
2018-06-01 16:01:29 -04:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
};
|