-
Notifications
You must be signed in to change notification settings - Fork 2
/
rollup.config.js
38 lines (36 loc) · 998 Bytes
/
rollup.config.js
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
26
27
28
29
30
31
32
33
34
35
36
37
38
import coffeescript from 'rollup-plugin-coffee-script'
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs'
import buble from 'rollup-plugin-buble'
import serve from 'rollup-plugin-serve'
import livereload from 'rollup-plugin-livereload'
import globals from 'rollup-plugin-node-globals'
import builtins from 'rollup-plugin-node-builtins'
import json from 'rollup-plugin-json';
export default {
input: './src/app.coffee',
plugins: [
json({
compact: true
}),
coffeescript(),
buble( {jsx: 'h', target: {chrome: 71}}),
globals(),
builtins(),
resolve(),
commonjs({extensions: ['.js', '.coffee']}),
serve({host: '0.0.0.0', contentBase:'public', headers: {
'Access-Control-Allow-Origin': '*'
}}),
livereload({watch: 'public'})
],
output: {
file: 'public/bundle.js',
name: 'APP',
format: 'iife',
sourcemap: true
},
watch: {
include: ['src/**', 'build/contracts/**']
}
};