npm: Remove portfinder
This commit is contained in:
parent
1518319241
commit
2a2078700b
3 changed files with 1 additions and 24 deletions
|
@ -6,7 +6,6 @@ const config = require('../config')
|
|||
const merge = require('webpack-merge')
|
||||
const baseWebpackConfig = require('./webpack.base.conf')
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
const portfinder = require('portfinder')
|
||||
|
||||
function resolve(dir) {
|
||||
return path.join(__dirname, '..', dir)
|
||||
|
@ -69,17 +68,5 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
|||
})
|
||||
|
||||
module.exports = new Promise((resolve, reject) => {
|
||||
portfinder.basePort = process.env.PORT || config.dev.port
|
||||
portfinder.getPort((err, port) => {
|
||||
if (err) {
|
||||
reject(err)
|
||||
} else {
|
||||
// publish the new Port, necessary for e2e tests
|
||||
process.env.PORT = port
|
||||
// add port to devServer config
|
||||
devWebpackConfig.devServer.port = port
|
||||
|
||||
resolve(devWebpackConfig)
|
||||
}
|
||||
})
|
||||
resolve(devWebpackConfig)
|
||||
})
|
||||
|
|
|
@ -87,7 +87,6 @@
|
|||
"optimize-css-assets-webpack-plugin": "5.0.8",
|
||||
"ora": "3.4.0",
|
||||
"path-to-regexp": "2.4.0",
|
||||
"portfinder": "1.0.32",
|
||||
"postcss": "8.4.16",
|
||||
"postcss-loader": "4.0.3",
|
||||
"postcss-url": "10.1.3",
|
||||
|
|
|
@ -7753,15 +7753,6 @@ pn@^1.1.0:
|
|||
resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb"
|
||||
integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==
|
||||
|
||||
portfinder@1.0.32:
|
||||
version "1.0.32"
|
||||
resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.32.tgz#2fe1b9e58389712429dc2bea5beb2146146c7f81"
|
||||
integrity sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==
|
||||
dependencies:
|
||||
async "^2.6.4"
|
||||
debug "^3.2.7"
|
||||
mkdirp "^0.5.6"
|
||||
|
||||
portfinder@^1.0.26:
|
||||
version "1.0.29"
|
||||
resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.29.tgz#d06ff886f4ff91274ed3e25c7e6b0c68d2a0735a"
|
||||
|
|
Loading…
Reference in a new issue