Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cmcm/browserslist-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cmcm/browserslist-config

Browserslist config for daily development.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

browserslist-config

浏览器兼容性 Browserslist 配置包

安装

npm i -D @cmcm/browserslist-config

使用方法

有独立配置文件

项目根目录的 .browserslistrc 文件只需要包含以下内容:

extends @cmcm/browserslist-config

无独立配置文件

package.json 文件中,按如下格式编写配置:

{
	"browserslist": [
		"extends @cmcm/browserslist-config"
	]
}

多入口

这个配置包里包含了多个平台的配置,提供了多个入口文件:

入口适用平台备注
/preset/mobile移动端
/preset/desktop桌面端
/index 或省略(默认入口)双平台实际上就是以上两者之和

extends 的时候指定入口文件即可。比如:

# for a mobile project
extends @cmcm/browserslist-config/preset/mobile

Keywords

FAQs

Package last updated on 21 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc