-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrollup.config.ts
More file actions
41 lines (40 loc) · 1.32 KB
/
rollup.config.ts
File metadata and controls
41 lines (40 loc) · 1.32 KB
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 type { RollupOptions } from 'rollup';
import dev from 'rollup-plugin-dev';
import html from '@rollup/plugin-html';
import terser from '@rollup/plugin-terser';
import copy from 'rollup-plugin-copy';
const config = (args: Record<string, any>): RollupOptions => ({
input: 'src/index.mjs',
output: {
dir: 'dist',
format: 'es'
},
plugins: [
copy({
targets: [
{ src: 'static/**/*', dest: 'dist' }
],
}),
html({
title: "bingous",
meta: [
{ charset: 'utf-8' },
{ property: 'og:type', content: 'website' },
{ property: 'og:title', content: 'bingous' },
{ property: 'og:description', content: 'custom bingo cards, mostly for social media and stuff but like you can totally play bingo with them too if you want' },
{ property: 'og:url', content: 'https://www.bingous.org' },
{ property: 'og:image', content: 'https://www.bingous.org/bingous1.png' },
],
attributes: {
html: { lang: 'en' },
link: { rel: 'icon', href: 'favicon.ico' },
},
}),
dev({
dirs: ["dist"],
force: args.configServe,
}),
terser(),
],
});
export default config;