npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

digo-autoprefixer

v0.1.1

Published

digo 插件:使用 AutoPrefixer 追加 CSS 属性前缀

Downloads

2

Readme

digo-autoprefixer

digo 插件:使用 AutoPrefixer 追加 CSS 属性前缀。

如果您还需要使用 PostCSS 的其它功能,建议使用 digo-postcss 插件。

安装

npm install digo-autoprefixer -g

用法

追加 CSS 属性前缀

digo.src("*.css").pipe("digo-autoprefixer");

源映射(Source Map)

本插件支持生成源映射,详见 源映射

选项

digo.src("*.css").pipe("digo-autoprefixer", {
	browsers: [], 	    // 支持的浏览器列表。如 [">5%"]。具体见[浏览器列表](https://github.com/ai/browserslist#queries)
	cascade: true, 	    // 如果 CSS 未压缩,则用法 Visual Cascade。
	add: true, 		    // 是否追加前缀。
	remove: true, 	    // 是否删除过期的前缀。
	supports: true,     // 是否为 @supports 参数追加前缀。
	flexbox: true, 	    // 可以是布尔或字符串。是否追加 flexbox 属性前缀。如果设置为 "no-2009" 表示只为最终 IE 版本规范追加。
	grid: true, 	    // 是否在列布局属性中追加 IE 前缀。
	stats: null, 	    // 自定义浏览器用法率。
	from: "",			// 源文件路径。*
	to: "",				// 目标文件路径。*
	map: null,			// 是否生成源映射。具体见 [map](https://github.com/postcss/postcss/blob/master/docs/source-maps.md)。*
	parser: null,		// 自定义 CSS 解析器。如 [SCSS](https://github.com/postcss/postcss-scss)。
	stringifier: null,	// 自定义 CSS 生成器。如 [Midas](https://github.com/ben-eb/midas)。
	syntax: null,		// 同时包含 parser 和 stringifier 的 JSON 对象。
});

*: 插件内部已重设了此选项的默认值。

另参考: https://github.com/postcss/autoprefixer#options