@dnb/browserslist-config
v1.3.0
Published
Browserslist configuration for DNB services and web applications.
Readme
@dnb/browserslist-config
Custom browserslist configuration for DNB services and web applications.
Usage
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"]
}Displaying a list of supported browsers for humans
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".Development
Use git commit message descriptions
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 elseSquash commits
When you merge a pull request, choose to squash the commits into one commit.
Release
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.
Update Browserslist
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@latestBrowserslist CLI
Use the Browserslist CLI for Quick Checks: You can quickly see which browsers are selected by your current configuration by running:
yarn browserslist