-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.webhook.js
39 lines (34 loc) · 967 Bytes
/
rollup.config.webhook.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
// import multiEntry from "rollup-plugin-multi-entry";
import path from 'path';
import typescriptPlugin from 'rollup-plugin-typescript2';
import typescript from 'typescript';
import rollup from './rollup.config';
import scss from 'rollup-plugin-scss';
import css from 'rollup-plugin-import-css';
let baseOut = 'dist/webhook';
rollup.input = "src/WebhookApp.ts";
rollup.output = {
...rollup.output,
dir: path.join(baseOut),
format: 'esm',
entryFileNames: "[name].js",
chunkFileNames: "[name].js",
sourcemap: true,
}
rollup.plugins = [
...rollup.plugins,
css(),
typescriptPlugin({
tsconfig: 'tsconfig-webhook.json',
clean: false,
typescript
}),
// scss({
// // include: ["/**/*.css", "/**/*.scss", "/**/*.sass"],
// output: path.join(baseOut, "/css/style.css"),
// failOnError: false,
// // Import library as global use all scss
// // prefix: `@import "src/base/flexbox.scss";`
// }),
]
export default rollup