File tree 1 file changed +2
-16
lines changed
1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,8 @@ import commonjs from "rollup-plugin-commonjs";
3
3
import nodeResolve from "rollup-plugin-node-resolve" ;
4
4
import babel from "rollup-plugin-babel" ;
5
5
import { terser } from "rollup-plugin-terser" ;
6
- import serve from "rollup-plugin-serve" ;
7
6
import json from "@rollup/plugin-json" ;
8
7
9
- const dev = process . env . ROLLUP_WATCH ;
10
-
11
- const serveopts = {
12
- contentBase : [ "./dist" ] ,
13
- host : "0.0.0.0" ,
14
- port : 5000 ,
15
- allowCrossOrigin : true ,
16
- headers : {
17
- "Access-Control-Allow-Origin" : "*" ,
18
- } ,
19
- } ;
20
-
21
8
const plugins = [
22
9
nodeResolve ( { } ) ,
23
10
commonjs ( ) ,
@@ -26,8 +13,7 @@ const plugins = [
26
13
babel ( {
27
14
exclude : "node_modules/**" ,
28
15
} ) ,
29
- dev && serve ( serveopts ) ,
30
- ! dev && terser ( ) ,
16
+ terser ( ) ,
31
17
] ;
32
18
33
19
export default [
@@ -37,6 +23,6 @@ export default [
37
23
dir : "dist" ,
38
24
format : "es" ,
39
25
} ,
40
- plugins : [ ... plugins ] ,
26
+ plugins,
41
27
} ,
42
28
] ;
You can’t perform that action at this time.
0 commit comments