Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/donejs/css
A CSS Plugin for DoneJS projects
https://github.com/donejs/css
Last synced: 12 days ago
JSON representation
A CSS Plugin for DoneJS projects
- Host: GitHub
- URL: https://github.com/donejs/css
- Owner: donejs
- License: mit
- Created: 2015-05-15T16:44:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T17:06:12.000Z (over 4 years ago)
- Last Synced: 2024-10-06T18:45:32.263Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/done-css
- Size: 141 KB
- Stars: 2
- Watchers: 23
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# done-css
[![Build Status](https://travis-ci.org/donejs/css.svg?branch=worker)](https://travis-ci.org/donejs/css)
[![npm version](https://badge.fury.io/js/done-css.svg)](http://badge.fury.io/js/done-css)A CSS plugin for DoneJS projects.
This is the normal Steal CSS plugin with a few DoneJS specific features like live-reload and server-side rendering included.
## Install
To use this plugin in a DoneJS project just install it:
```js
npm install done-css --save
```## Features
### renderingCacheVersion
When server-side rendering with [done-ssr](https://github.com/donejs/done-ssr) and using the [cache busting](https://stealjs.com/docs/config.cacheVersion.html) extension you need to specify the `renderingCacheVersion` property in your config. You might do so like this:
```js
const ssr = require("done-ssr");const render = ssr({
renderingCacheVersion: 99
});
```Doing this will result in the cache version number appearing in the server-rendered `` elements.
## Contributing
To setup your dev environment:
1. Clone and fork this repo.
2. Run `npm install`.
3. Open `test/test.html` in your browser. Everything should pass.
4. Run `npm test`. Everything should pass.
5. Run `npm run-script build`. Everything should build ok.
To publish:1. Update the version number in package.json
2. Update the version number in `test/live-ssr/index.html`
3. Commit and push this to master
4. Tag it `git tag v0.2.0`. Push the tag `git push origin --tags`.## License
MIT