Skip to content

Commit

Permalink
Update changelog and mention requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
thgh committed Dec 21, 2019
1 parent ab746ef commit e51ddf3
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 368 deletions.
31 changes: 14 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,22 @@ All notable changes to `rollup-plugin-css-only` will be documented in this file.

## [Unreleased]

## [1.0.0] - 2019-01-27
### Update
- Update `ongenerate` to `generateBundle`

## [0.6.0] - 2017-08-21
## [2.0.0] - 2019-12-21
### Added
- Close server when rollup exits

### Fixed
- Close server when rollup exits
- Inject script tag non-blocking
- Add `bundle` as 3rd argument in `output` function @lazyhero

## [0.4.0] - 2016-12-05
### Changed
- Replace mkdirp by fs.mkdir (Node.js 10.12+) @MichaelAllenHardeman

## [1.0.0] - 2019-01-27
### Added
- Accept array to watch for changes
- Add ES modules build: `dist/index.es.js`

### Changed
- Migrate to Rollup v1 @tlvince


[Unreleased]: https://github.com/thgh/rollup-plugin-livereload/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/thgh/rollup-plugin-livereload/compare/v0.6.0...v1.0.0
[0.6.0]: https://github.com/thgh/rollup-plugin-livereload/compare/v0.4.0...v0.6.0
[0.4.0]: https://github.com/thgh/rollup-plugin-livereload/compare/v0.0.1...v0.4.0
[0.0.1]: https://github.com/thgh/rollup-plugin-livereload/releases
[Unreleased]: https://github.com/thgh/rollup-plugin-css-only/compare/v2.0.0...HEAD
[2.0.0]: https://github.com/thgh/rollup-plugin-css-only/compare/v1.0.0...v2.0.0
[1.0.0]: https://github.com/thgh/rollup-plugin-css-only/compare/v0.0.1...v1.0.0
[0.0.1]: https://github.com/thgh/rollup-plugin-css-only/releases
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Rollup plugin that bundles imported css

### Integrates nicely with rollup-plugin-vue2

<a href="LICENSE">
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg" alt="Software License" />
</a>
Expand All @@ -21,6 +19,9 @@
## Installation
```
npm install --save-dev rollup-plugin-css-only
# If using Node.js lower than 10.12
npm install --save-dev rollup-plugin-css-only@1
```

## Usage
Expand Down Expand Up @@ -55,13 +56,13 @@ By default the plugin will base the filename for the css on the bundle destinati
```js
css({
// Filename to write all styles to
output: 'bundle.scss',
output: 'bundle.css',

// Callback that will be called ongenerate with two arguments:
// - styles: the contents of all style tags combined: 'body { color: green }'
// - styleNodes: an array of style objects: [{lang: 'css', content: 'body { color: green }'}]
output: function (styles, styleNodes) {
writeFileSync('bundle.scss', styles)
writeFileSync('bundle.css', styles)
},

// Disable any style output or callbacks
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"files": [
"dist"
],
"engines": {
"node": ">=10.12.0"
},
"peerDependencies": {
"rollup": "^1.0.0"
},
Expand Down
Loading

0 comments on commit e51ddf3

Please sign in to comment.