Skip to content

Commit

Permalink
- Raised package version to 3.0.0 (#64)
Browse files Browse the repository at this point in the history
- Refactored logic from prototype class to class
- Switched from done hook to afterEmit because webpack v5 shrinks assets to SizeOnlySource
- Added config validation
- Restructured options from single attributes to options attribute
- Adding webpack as peerDependency and node > 10 as engine
- Removed webpack 3 support
  • Loading branch information
web-mi authored Feb 21, 2021
1 parent 6859045 commit 782977b
Show file tree
Hide file tree
Showing 7 changed files with 1,452 additions and 234 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [3.0.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.3.0...v3.0.0) (2021-02-20)

### ⚠ POTENTIAL BREAKING CHANGE

Configuration is now be validated against schema and webpack v3 support was removed.
Node version have to be >= 10.18.0.

### Features

* Refactored logic from prototype class to class
* Switched from `done` hook to `afterEmit` because webpack v5 shrinks assets to SizeOnlySource
* Added config validation
* Restructured options from single attributes to options attribute
* Adding webpack as peerDependency and node > 10 as engine
* Removed webpack 3 support
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# webpack-livereload-plugin

[![Build Status](https://travis-ci.org/statianzo/webpack-livereload-plugin.svg?branch=master)](https://travis-ci.org/statianzo/webpack-livereload-plugin)
[![node][node]][node-url]

LiveReload when running `webpack --watch`

Expand All @@ -9,11 +10,7 @@ LiveReload when running `webpack --watch`
Install the package

```sh
# for webpack 4
npm install --save-dev webpack-livereload-plugin

# for webpack 3
npm install --save-dev webpack-livereload-plugin@1
```

Add the plugin to your webpack config
Expand Down Expand Up @@ -73,3 +70,7 @@ should prevent multiple reloads.

Alternatively if this slows your build process you could set `liveCSS`
and `liveImg` to `false` to prevent multiple reloads.


[node]: https://img.shields.io/node/v/webpack-livereload-plugin.svg
[node-url]: https://nodejs.org
Loading

0 comments on commit 782977b

Please sign in to comment.