-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from remarkablemark/[email protected]
Fix webpack error by reverting to [email protected] for v0.2.0
- Loading branch information
Showing
5 changed files
with
27 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,12 @@ Parser('<p>Hello, world!</p>'); | |
$ npm install html-react-parser | ||
``` | ||
|
||
Or if you're using react <15.4: | ||
|
||
```sh | ||
$ npm install [email protected] | ||
``` | ||
|
||
[CDN](https://unpkg.com/html-react-parser/): | ||
|
||
```html | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,10 @@ | |
"author": "Mark <[email protected]>", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "NODE_ENV=development webpack index.js dist/html-react-parser.js", | ||
"build-unmin": "NODE_ENV=development webpack index.js dist/html-react-parser.js", | ||
"build-min": "NODE_ENV=production webpack -p index.js dist/html-react-parser.min.js", | ||
"prepublish": "npm run build && npm run build-min", | ||
"clean": "rm -rf dist", | ||
"prepublish": "npm run clean && npm run build-unmin && npm run build-min", | ||
"test": "mocha", | ||
"lint": "eslint index.js \"lib/**\" \"test/**\"", | ||
"cover": "istanbul cover _mocha -- -R spec \"test/**/*\"", | ||
|
@@ -36,15 +37,14 @@ | |
"istanbul": "^0.4.5", | ||
"jsdomify": "^2.1.0", | ||
"mocha": "^3.0.2", | ||
"react": "*", | ||
"react-dom": "*", | ||
"react": "15.3", | ||
"react-dom": "15.3", | ||
"webpack": "^1.13.2" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=0.14" | ||
"react": "<=15.3" | ||
}, | ||
"browser": { | ||
"./lib/html-to-dom-server.js": false, | ||
"htmlparser2/lib/Parser": false, | ||
"domhandler": false | ||
}, | ||
|