generated from pwa-builder/pwa-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.dev.js
35 lines (34 loc) · 892 Bytes
/
rollup.config.dev.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
import resolve from "@rollup/plugin-node-resolve";
import html from "@open-wc/rollup-plugin-html";
import copy from "rollup-plugin-copy";
import replace from "@rollup/plugin-replace";
import typescript from "@rollup/plugin-typescript";
export default {
input: "index.html",
output: {
dir: "build",
format: "es",
},
plugins: [
resolve({
exportConditions: ['development']
}),
html(),
typescript({
tsconfig: "tsconfig.dev.json",
}),
replace({
__apiKey__ : process.env.apiKey,
__authDomain__ : process.env.authDomain,
__projectId__: process.env.projectId,
__clientID__ : process.env.clientID
}),
copy({
targets: [
{ src: "assets/**/*", dest: "build/assets/" },
{ src: "styles/global.css", dest: "build/styles/" },
{ src: "manifest.json", dest: "build/" },
],
}),
],
};