babel-plugin-app-decorators-style-precompile
Babel Plugin for auto generating code
Installation
$ npm install babel-plugin-app-decorators-style-precompile --save
Usage
.babelrc
(Recommended)
Via .babelrc
.babelrc options
"plugins": "app-decorators-style-precompile" autoprefixer: "last 2 versions" minify: true
Via CLI
$ babel --plugins app-decorators-style-precompile script.js
Via Node API
;
The goal of this babel-plugin is precompile precomplie the stylesheet inside of @style:
Example
Input:
@
Output:
@
Tests
git clone https://github.com/SerkanSipahi/app-decorators.gitcd app-decorators/packages/babel-plugin-app-decorators-style-precompilemake installmake test