-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.js
41 lines (40 loc) · 901 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
39
40
41
import { string } from "rollup-plugin-string";
import image from '@rollup/plugin-image';
import banner2 from 'rollup-plugin-banner2'
export default {
input: `src/index.js`,
external: ['Scratch'],
output: [
{
file: 'dist/tilemap.js',
name: 'tilemap',
format: 'iife',
globals: {
'Scratch': 'Scratch'
}
},
],
plugins: [
//uglify(),
image(),
string({
include: [
"**/*.frag",
"**/*.vert"
]
}),
banner2(() =>
`
// Tilemap
`
)
// server({
// contentBase: ['dist'],
// port: 8000,
// headers: {
// 'Access-Control-Allow-Origin': '*',
// 'Access-Control-Allow-Methods': '*',
// }
// }),
],
};