-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.js
More file actions
25 lines (24 loc) · 789 Bytes
/
Copy pathrollup.config.js
File metadata and controls
25 lines (24 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { join } from 'path';
import css from 'rollup-plugin-css-only'
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import uglify from 'rollup-plugin-uglify';
import html from 'rollup-plugin-fill-html';
import serve from 'rollup-plugin-serve'
export default {
input: 'src/app.js',
output: {
file: join(__dirname, 'public/app.bundle.js'),
format: 'iife'
},
plugins: [
html({ template: 'src/index.html', filename: 'index.html' }),
css({ output: join(__dirname, 'public/styles.bundle.css') }),
nodeResolve({ jsnext: true, main: true }),
commonjs({ include: 'node_modules/**' }),
babel({ exclude: 'node_modules/**' }),
uglify(),
serve('public')
]
};