0.1.0 • Published 8 years ago
babel-plugin-sass-extract v0.1.0
babel-plugin-sass-extract
Babel plugin for sass-extract.
Require sass files and get an object containing extracted sass variables. Supports require() and import.
Note that this is an early prototype.
Install
You need to install the sass compiler, sass-extract and the plugin since they are all peer dependencies.
npm install --save node-sass sass-extract babel-plugin-sass-extractUsage
const styleVariables = require('./styles.scss');import styleVariables from './styles.scss';Requirements
node-sass >= 3.8.0node >= 4
Contributing
Running tests
npm testCommits
In order to have readable commit messages and the ability to generate a changelog the commit messages should follow a certain structure.
To make it easier install npm install -g commitizen and commit using git-cz.
Generate changelog using npm install -g conventional-changelog and npm run changelog.
Releasing new versions
- Make changes
- Commit those changes
- Set new version in package.json
npm run changelog- Commit package.json and CHANGELOG.md files
- Tag
- Push
0.1.0
8 years ago