Skip to content

Commit

Permalink
Remove hacks from hmr example
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Binns-Smith authored and wbinnssmith committed May 15, 2019
1 parent afe2e8a commit 62e41cb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
7 changes: 3 additions & 4 deletions packages/examples/react-hmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"license": "MIT",
"private": true,
"scripts": {
"html-hack": "mkdir -p dist && cp src/index.html dist/index.html",
"demo": "yarn html-hack && parcel2 serve src/index.js"
"demo": "parcel2 serve src/index.html"
},
"devDependencies": {
"parcel": "^2.0.0"
},
"browser": "dist/legacy/index.js",
"browserModern": "dist/modern/index.js",
"browser": "dist/legacy/index.html",
"browserModern": "dist/modern/index.html",
"targets": {
"browserModern": {
"engines": {
Expand Down
22 changes: 11 additions & 11 deletions packages/examples/react-hmr/src/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Parcel | React Example</title>
</head>
<body>
<div id="app"></div>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Parcel | React Example</title>
</head>
<body>
<div id="app"></div>

<script src="legacy/index.js"></script>
</body>
</html>
<script src="index.js"></script>
</body>
</html>

0 comments on commit 62e41cb

Please sign in to comment.