Custom browserslist configuration for DNB services and web applications.
Install:
pnpm add -D @dnb/browserslist-config
yarn add -D @dnb/browserslist-config
npm install -D @dnb/browserslist-configIn your package.json file:
{
"browserslist": ["extends @dnb/browserslist-config"]
}You can display a list (table) readable for humans:
import supportedBrowsers from '@dnb/browserslist-config/supportedBrowsers.mjs'
// Will output an array with an object for each browser, containing "name" and "minimumVersion".We use Conventional Commits to generate our changelogs. Please use the following format for your commit messages:
feat: add new feature
fix: fix bug
docs: update documentation
refactor: refactor code
perf: improve performance
test: add or update tests
ci: update ci configuration
chore: something elseWhen you merge a pull request, choose to squash the commits into one commit.
When a pull request is merged, a new release will be created automatically. The release will be tagged with the version number from the commit message.
Stay Updated: Regularly update your caniuse-lite database to ensure Browserslist has the most recent data. You can do this by running:
yarn dlx update-browserslist-db@latestUse the Browserslist CLI for Quick Checks: You can quickly see which browsers are selected by your current configuration by running:
yarn browserslist