Chore: Update `webpack-dev-server` to its `next` version (4.0.0-beta3)

This commit is contained in:
Svallinn 2021-06-19 18:58:56 +01:00
parent 48faf47dc3
commit 52f35e5be3
No known key found for this signature in database
GPG Key ID: 09FB527F34037CCA
4 changed files with 342 additions and 1046 deletions

View File

@ -27,6 +27,8 @@ if (remoteDebugging) {
const relaunchExitCode = 69 const relaunchExitCode = 69
process.env.FREETUBE_RELAUNCH_EXIT_CODE = relaunchExitCode process.env.FREETUBE_RELAUNCH_EXIT_CODE = relaunchExitCode
const port = 9080
async function killElectron(pid) { async function killElectron(pid) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (pid) { if (pid) {
@ -114,13 +116,11 @@ function startRenderer(callback) {
}) })
const server = new WebpackDevServer(compiler, { const server = new WebpackDevServer(compiler, {
contentBase: path.join(__dirname, '../'), static: path.join(process.cwd(), 'static'),
hot: true, port
overlay: true,
clientLogLevel: 'warning'
}) })
server.listen(9080, '', err => { server.listen(port, '', err => {
if (err) console.error(err) if (err) console.error(err)
callback() callback()

View File

@ -22,6 +22,12 @@ const config = {
entry: { entry: {
renderer: path.join(__dirname, '../src/renderer/main.js'), renderer: path.join(__dirname, '../src/renderer/main.js'),
}, },
infrastructureLogging: {
// Only warnings and errors
// level: 'none' disable logging
// Please read https://webpack.js.org/configuration/other-options/#infrastructurelogginglevel
level: isDevMode ? 'info' : 'none'
},
output: { output: {
libraryTarget: 'commonjs2', libraryTarget: 'commonjs2',
path: path.join(__dirname, '../dist'), path: path.join(__dirname, '../dist'),

1370
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -104,7 +104,7 @@
"vue-template-compiler": "^2.6.14", "vue-template-compiler": "^2.6.14",
"webpack": "^5.39.1", "webpack": "^5.39.1",
"webpack-cli": "^4.7.2", "webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2" "webpack-dev-server": "^4.0.0-beta.3"
}, },
"license": "AGPL-3.0-or-later", "license": "AGPL-3.0-or-later",
"main": "./dist/main.js", "main": "./dist/main.js",