Fix/webpack serve warnings (#673)
* fix webpack serve warnings * semver * fix formatting * add node 18.x to build
This commit is contained in:
Родитель
ff5eb3a2a1
Коммит
eb906a55fa
|
@ -34,7 +34,7 @@ jobs:
|
|||
if: "github.actor != 'dependabot[bot]'"
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x]
|
||||
node-version: [14.x, 16.x, 18.x]
|
||||
steps:
|
||||
- run: echo "actor is ${{github.actor}}, ref is ${{github.ref}} head_ref is ${{github.head_ref}}"
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
releases:
|
||||
"@essex/scripts": patch
|
||||
|
||||
declined:
|
||||
- "@essex/babel-config"
|
||||
- "@essex/jest-config"
|
||||
- "@essex/vite-config"
|
||||
- "@essex/test-lib-dual"
|
||||
- "@essex/test-lib-esm"
|
||||
- "@essex/test-lib-legacy"
|
||||
- "@essex/test-lib-md-index"
|
||||
- "@essex/test-webapp-vite"
|
||||
- "@essex/test-webapp-webpack"
|
||||
- "@essex/test-zips"
|
|
@ -28,8 +28,10 @@ export function webpackServe({
|
|||
}
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-unsafe-argument */
|
||||
const server = new Server(compiler as any, wpConfig.devServer)
|
||||
server.listen(port, host, (err?: Error | undefined) => {
|
||||
const server = new Server(wpConfig.devServer, compiler)
|
||||
server.options.port = port
|
||||
server.options.host = host
|
||||
server.startCallback((err?: Error | undefined) => {
|
||||
if (err) {
|
||||
console.log(`error listening`, err)
|
||||
reject(err)
|
||||
|
|
Загрузка…
Ссылка в новой задаче