Skip to content

Commit 323e617

Browse files
Merge pull request #36 from remarkablemark/examples
Update examples and package.json
2 parents 4642da7 + f6e9168 commit 323e617

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

examples/requirejs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script>
1414
requirejs.config({
1515
paths: {
16-
'html-react-parser': 'https://unpkg.com/html-react-parser@latest/dist/html-react-parser.min',
16+
'html-react-parser': '../dist/html-react-parser.min',
1717
'react': 'https://unpkg.com/react@latest/dist/react.min',
1818
'react-dom': 'https://unpkg.com/react-dom@latest/dist/react-dom.min'
1919
}

examples/script-tag.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
<body style="padding: 50px">
88
<div id="root"></div>
99

10-
<!-- HTMLReactParser depends on React -->
10+
<!-- HTMLReactParser depends on React and ReactDOM -->
1111
<script src="https://unpkg.com/react@latest/dist/react.min.js"></script>
12-
<script src="https://unpkg.com/html-react-parser@latest/dist/html-react-parser.min.js"></script>
13-
14-
<!-- ReactDOM -->
1512
<script src="https://unpkg.com/react-dom@latest/dist/react-dom.min.js"></script>
13+
<script src="../dist/html-react-parser.min.js"></script>
14+
1615
<script>
1716
ReactDOM.render(
1817
HTMLReactParser(

package.json

-4
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,5 @@
4545
"react": ">=15.4",
4646
"react-dom": ">=15.4"
4747
},
48-
"browser": {
49-
"htmlparser2/lib/Parser": false,
50-
"domhandler": false
51-
},
5248
"license": "MIT"
5349
}

0 commit comments

Comments
 (0)