-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrollup.config.js
More file actions
37 lines (34 loc) · 844 Bytes
/
rollup.config.js
File metadata and controls
37 lines (34 loc) · 844 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
26
27
28
29
30
31
32
33
34
35
36
37
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import html from '@open-wc/rollup-plugin-html';
import graphql from '@apollo-elements/rollup-plugin-graphql';
import litcss from 'rollup-plugin-lit-css';
import esbuild from 'rollup-plugin-esbuild';
import { copy } from '@web/rollup-plugin-copy';
export default {
// main entry point which loads the client and the app-shell components
input: 'index.html',
output: [{
dir: 'build',
format: 'es',
sourcemap: true,
}, {
dir: 'build/nomodule',
format: 'system',
sourcemap: true,
}],
plugins: [
esbuild({ ts: true, target: 'es2019' }),
html(),
resolve(),
commonjs(),
graphql(),
litcss(),
copy({
patterns: [
'src/*.css',
'src/fonts/*',
],
}),
],
};