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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?