@fast-styles/babel-plugin
v0.2.3
Published
A Babel plugin that generates fast-styles style maps at compile time
Downloads
58
Readme
Fast-Styles Babel Plugin
This is a plugin that generates the stylemap used by fast-styles at transpile time.
Installation
npm install --save-dev @fast-styles/babel-plugin
or
yarn add -D @fast-styles/babel-plugin
Configuration
You need to add the plugin to your Babel configuration file for it to work.
// 1. Import the Fast-Styles Babel Plugin
const babelPluginFastSyles = require('@fast-styles/babel-plugin');
module.exports = {
plugins: [
// 2. Add the plugin to the list
babelPluginFastSyles,
],
};