Skip to content

Commit

Permalink
Merge pull request #96 from istrategylabs/preserve-custom-properties
Browse files Browse the repository at this point in the history
preserve css custom properties
  • Loading branch information
thomasdegry committed Sep 29, 2017
2 parents e99f8c8 + 13faba7 commit d721715
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions {{cookiecutter.repo_name}}/README.md
Expand Up @@ -68,6 +68,13 @@ mo-static uses [SUIT CSS](https://suitcss.github.io/) to package its css but it

A list with all utilities can be found [here](https://github.com/suitcss/utils) and a list with all components can be found [here](https://github.com/suitcss/components)

By default, SUIT CSS will compile CSS custom properties. If you wish to preserve any custom properties you can uncomment these lines in the css gulp task of `build.js`.

```javascript
// 'postcss-custom-properties':{preserve: true},
```


## Configuration

[convict](https://github.com/mozilla/node-convict) is used to handle configuration which lives in `config.js`.
Expand Down
1 change: 1 addition & 0 deletions {{cookiecutter.repo_name}}/gulp/build.js
Expand Up @@ -21,6 +21,7 @@ gulp.task('css', () =>
gulp.src('src/static/css/app.css')
.pipe(sourcemaps.init())
.pipe(suitcss({
// 'postcss-custom-properties': {preserve: true},
stylelint: stylelintConfig,
use: ['postcss-nested']
}))
Expand Down

0 comments on commit d721715

Please sign in to comment.