@zohodesk/client_build_tool
Version:
A CLI tool to build web applications and client libraries
61 lines (38 loc) • 3.73 kB
Markdown
## Supported Browser Versions Configuration Documentation
The `supportedBrowserVersions` array in the Client Build Tool (CBT) configuration allows you to specify the supported versions of various browsers for your project. Here is the documentation for the provided configuration:
```javascript
const supportedBrowserVersions = [
'last 3 Chrome versions',
'last 3 Firefox versions',
'last 3 Edge versions',
'last 3 Safari versions'
];
```
The `supportedBrowserVersions` array includes browser version specifications using a syntax recognized by tools like Autoprefixer and Babel. Each entry in the array represents a specific browser and the number of versions to be supported.
In the provided configuration, the following browser versions are specified:
- `'last 3 Chrome versions'`: This specifies the last three versions of the Chrome browser to be supported.
- `'last 3 Firefox versions'`: This specifies the last three versions of the Firefox browser to be supported.
- `'last 3 Edge versions'`: This specifies the last three versions of the Edge browser to be supported.
- `'last 3 Safari versions'`: This specifies the last three versions of the Safari browser to be supported.
By specifying the supported browser versions, you can ensure that the generated code from CBT is compatible with a specific set of browsers. This helps in targeting a wide range of users while leveraging the latest browser capabilities and ensuring optimal performance and compatibility.
Please note that the actual behavior and compatibility of the generated code may also depend on the specific plugins and tools used in your build configuration, such as Autoprefixer or Babel. Make sure these tools are properly configured and integrated into your build pipeline for the specified browser versions to be correctly targeted and supported.
Feel free to modify the `supportedBrowserVersions` array according to your project's requirements and the desired level of browser compatibility.
## Supported Browser Versions Configuration Documentation
The `supportedBrowserVersions` object in the Client Build Tool (CBT) configuration allows you to specify the supported versions of various browsers for your project. Here is the documentation for the provided configuration:
```javascript
const supportedBrowserVersions = {
chrome: '108.0.0',
edge: '108.0.0',
firefox: '108.0.0',
safari: '16.1.0'
};
```
The `supportedBrowserVersions` object includes browser names as keys and their corresponding version numbers as values.
In the provided configuration, the following browser versions are specified:
- `chrome: '108.0.0'`: This specifies that the project supports Chrome browser version 108.0.0.
- `edge: '108.0.0'`: This specifies that the project supports Edge browser version 108.0.0.
- `firefox: '108.0.0'`: This specifies that the project supports Firefox browser version 108.0.0.
- `safari: '16.1.0'`: This specifies that the project supports Safari browser version 16.1.0.
By specifying the supported browser versions, you can ensure that the generated code from CBT is compatible with specific versions of each browser. This helps in targeting a specific set of browsers and ensuring optimal performance and compatibility for your project.
Please note that the actual behavior and compatibility of the generated code may also depend on the specific plugins and tools used in your build configuration. Make sure these tools are properly configured and integrated into your build pipeline to handle browser compatibility based on the specified versions.
Feel free to modify the `supportedBrowserVersions` object according to your project's requirements and the desired level of browser compatibility.