mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-22 18:07:13 +01:00
Only load the necessary configs in the dev-runner (#3146)
This commit is contained in:
parent
3ca561c3e6
commit
0eeac4699b
@ -9,16 +9,23 @@ const kill = require('tree-kill')
|
||||
const path = require('path')
|
||||
const { spawn } = require('child_process')
|
||||
|
||||
const mainConfig = require('./webpack.main.config')
|
||||
const rendererConfig = require('./webpack.renderer.config')
|
||||
const webConfig = require('./webpack.web.config')
|
||||
|
||||
let electronProcess = null
|
||||
let manualRestart = null
|
||||
|
||||
const remoteDebugging = process.argv.indexOf('--remote-debug') !== -1
|
||||
const web = process.argv.indexOf('--web') !== -1
|
||||
|
||||
let mainConfig
|
||||
let rendererConfig
|
||||
let webConfig
|
||||
|
||||
if (!web) {
|
||||
mainConfig = require('./webpack.main.config')
|
||||
rendererConfig = require('./webpack.renderer.config')
|
||||
} else {
|
||||
webConfig = require('./webpack.web.config')
|
||||
}
|
||||
|
||||
if (remoteDebugging) {
|
||||
// disable dvtools open in electron
|
||||
process.env.RENDERER_REMOTE_DEBUGGING = true
|
||||
|
Loading…
Reference in New Issue
Block a user