Skip to content

rorofino/babel-plugin-add-unit-styled-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-add-unit-styled-components

This plugin adds unit to css properties that need it to work on the browser. This is intended to help with the use of react-native-weband styled-components so you can create your components without unit and still use the same code to run it on the browser.

Quick start

Install the plugin first:

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

Then add it to your babel configuration as the FIRST plugin:

{
	"plugins": [["babel-plugin-add-unit-styled-components", {unit: "px"}]]
}

Contributing

Pull Requests are welcome ;)

License

Licensed under the MIT License, Copyright © 2018 Rodrigo Orofino.

See LICENSE.md for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published