Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eea325 commit c5ada6cCopy full SHA for c5ada6c
pyscriptjs/rollup.config.js
@@ -8,7 +8,7 @@ import typescript from "@rollup/plugin-typescript";
8
import css from "rollup-plugin-css-only";
9
import serve from 'rollup-plugin-serve'
10
11
-const production = !process.env.ROLLUP_WATCH;
+const production = !process.env.ROLLUP_WATCH || (process.env.NODE_ENV === "production");
12
13
function serve_() {
14
let server;
@@ -68,7 +68,7 @@ export default {
68
!production && serve(),
69
!production && livereload("public"),
70
production && terser(),
71
- serve({
+ !production && serve({
72
port: 8080,
73
contentBase: 'examples'}
74
)
0 commit comments