logo
Guide
Config
Plugin
API
English
简体中文
GitHub
Twitter
Discord
Guide
Config
Plugin
API
English
简体中文
GitHub
Twitter
Discord
logo
Overview
plugins

dev

assetPrefix
beforeStartUrl
client
hmr
progressBar
setupMiddlewares
startUrl
writeToDisk

source

aliasStrategy
alias
define
entry
exclude
include
preEntry
transformImport

output

assetPrefix
charset
cleanDistPath
copy
cssModules
dataUriLimit
disableFilenameHash
disableMinimize
distPath
externals
filename
injectStyles
inlineScripts
inlineStyles
legalComments
overrideBrowserslist
polyfill
sourceMap
targets

html

appIcon
crossorigin
favicon
inject
meta
mountId
outputStructure
scriptLoading
tags
templateParameters
template
title

server

compress
headers
historyApiFallback
host
htmlFallback
https
port
proxy
publicDir
strictPort

tools

autoprefixer
bundlerChain
cssLoader
htmlPlugin
less
postcss
rspack
sass
styleLoader

performance

bundleAnalyze
chunkSplit
dnsPrefetch
preconnect
prefetch
preload
printFileSize
profile
removeConsole
removeMomentLocale

strictPort#

  • Type: boolean
  • Default: false

When a port is occupied, Rsbuild will automatically increment the port number until an available port is found.

Set strictPort to true and Rsbuild will throw an exception when the port is occupied.

Example#

export default {
  server: {
    strictPort: true,
  },
};
Edit this page on GitHub
Previous PagepublicDir
Next pageautoprefixer
ON THIS PAGE
  • Example