Skip to content

Commit 782977b

Browse files
authored
- Raised package version to 3.0.0 (#64)
- 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
1 parent 6859045 commit 782977b

File tree

7 files changed

+1452
-234
lines changed

7 files changed

+1452
-234
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
3+
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.
4+
5+
### [3.0.0](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.3.0...v3.0.0) (2021-02-20)
6+
7+
### ⚠ POTENTIAL BREAKING CHANGE
8+
9+
Configuration is now be validated against schema and webpack v3 support was removed.
10+
Node version have to be >= 10.18.0.
11+
12+
### Features
13+
14+
* Refactored logic from prototype class to class
15+
* Switched from `done` hook to `afterEmit` because webpack v5 shrinks assets to SizeOnlySource
16+
* Added config validation
17+
* Restructured options from single attributes to options attribute
18+
* Adding webpack as peerDependency and node > 10 as engine
19+
* Removed webpack 3 support

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# webpack-livereload-plugin
22

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

56
LiveReload when running `webpack --watch`
67

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

1112
```sh
12-
# for webpack 4
1313
npm install --save-dev webpack-livereload-plugin
14-
15-
# for webpack 3
16-
npm install --save-dev webpack-livereload-plugin@1
1714
```
1815

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

7471
Alternatively if this slows your build process you could set `liveCSS`
7572
and `liveImg` to `false` to prevent multiple reloads.
73+
74+
75+
[node]: https://img.shields.io/node/v/webpack-livereload-plugin.svg
76+
[node-url]: https://nodejs.org

0 commit comments

Comments
 (0)