-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrollup.config.js
43 lines (41 loc) · 899 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
42
43
import { terser } from "rollup-plugin-terser";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import vue from "rollup-plugin-vue";
import scss from "rollup-plugin-scss";
import typescript from "rollup-plugin-typescript2";
import replace from "rollup-plugin-replace";
const plugins = [
replace({
"process.env.NODE_ENV": JSON.stringify("production")
}),
resolve({
jsnext: true,
main: true,
module: true
}),
commonjs({
include: "node_modules/**",
browser: true,
preferBuiltins: false,
ignoreGlobal: false,
sourceMap: false
}),
typescript(),
vue({
css: true,
compileTemplate: true
}),
terser(),
scss()
];
export default [
{
input: "src/interfaces/dictionary/index.ts",
output: {
format: "es",
file: "dist/interfaces/dictionary/index.js"
},
plugins
}
];