babel-plugin-styled-components

Improve the debugging experience and add server-side rendering support to styled-components

Github星跟踪图

babel-plugin-styled-components

This plugin is a highly recommended supplement to the base styled-components library, offering some useful features:

  • consistently hashed component classNames between environments (a must for server-side rendering)
  • better debugging through automatic annotation of your styled components based on their context in the file system, etc.
  • various types of minification for styles and the tagged template literals styled-components uses

Quick start

Install the plugin first:

npm install --save-dev babel-plugin-styled-components

Then add it to your babel configuration:

{
  "plugins": ["babel-plugin-styled-components"]
}

Documentation

The documentation for this plugin lives on the styled-components website!

License

Licensed under the MIT License, Copyright © 2016-present Vladimir Danchenkov and Maximilian Stoiber.

See LICENSE.md for more information.

主要指标

概览
名称与所有者styled-components/babel-plugin-styled-components
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2016-10-24 20:26:47
推送于2024-04-06 02:41:20
最后一次提交
发布数68
最新版本名称v2.1.4 (发布于 )
第一版名称v0.1.0 (发布于 2016-10-25 00:42:40)
用户参与
星数1.1k
关注者数29
派生数143
提交数486
已启用问题?
问题数232
打开的问题数74
拉请求数122
打开的拉请求数13
关闭的拉请求数43
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?