cleanup rollup config
This commit is contained in:
parent
0778487020
commit
7df7236ea1
|
@ -8,8 +8,6 @@ import { terser } from "rollup-plugin-terser"
|
||||||
import builtins from "rollup-plugin-node-builtins"
|
import builtins from "rollup-plugin-node-builtins"
|
||||||
import nodeglobals from "rollup-plugin-node-globals"
|
import nodeglobals from "rollup-plugin-node-globals"
|
||||||
import copy from "rollup-plugin-copy"
|
import copy from "rollup-plugin-copy"
|
||||||
import browsersync from "rollup-plugin-browsersync"
|
|
||||||
import proxy from "http-proxy-middleware"
|
|
||||||
import replace from "rollup-plugin-replace"
|
import replace from "rollup-plugin-replace"
|
||||||
|
|
||||||
import path from "path"
|
import path from "path"
|
||||||
|
@ -209,24 +207,4 @@ export default {
|
||||||
// instead of npm run dev), minify
|
// instead of npm run dev), minify
|
||||||
production && terser(),
|
production && terser(),
|
||||||
],
|
],
|
||||||
watch: {
|
}
|
||||||
clearScreen: false,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
function serve() {
|
|
||||||
let started = false
|
|
||||||
|
|
||||||
return {
|
|
||||||
writeBundle() {
|
|
||||||
if (!started) {
|
|
||||||
started = true
|
|
||||||
|
|
||||||
require("child_process").spawn("npm", ["run", "start"], {
|
|
||||||
stdio: ["ignore", "inherit", "inherit"],
|
|
||||||
shell: true,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue