Skip to content

Commit

Permalink
Make webpack a peer dep and bump to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkins committed Mar 24, 2018
1 parent 7cc9072 commit a2ad9ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ It's in its early stages, but you can find a loader version of this plugin here:

## Installation

> Note, for Webpack 4 support, install prettier-webpack-plugin@1. For Webpack < 4, install prettier-webpack-plugin@0
Simply run `npm install --save-dev prettier prettier-webpack-plugin` or `yarn add --dev prettier prettier-webpack-plugin` to install.

Then, in your Webpack config files, add the lines:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier-webpack-plugin",
"version": "0.2.2",
"version": "1.0.0",
"description": "Automatically process your source files with Prettier when bundling via Webpack",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -30,7 +30,8 @@
},
"homepage": "https://github.com/hawkins/prettier-webpack-plugin#readme",
"peerDependencies": {
"prettier": "^1.0.0"
"prettier": "^1.0.0",
"webpack": "^4.2.0"
},
"devDependencies": {
"all-contributors-cli": "^4.11.1",
Expand Down

0 comments on commit a2ad9ba

Please sign in to comment.