Skip to content

Instantly share code, notes, and snippets.

@ryoldash
Last active October 29, 2018 16:53
Show Gist options
  • Save ryoldash/c5d1f34b7c474363000d04beb6b1eeba to your computer and use it in GitHub Desktop.
Save ryoldash/c5d1f34b7c474363000d04beb6b1eeba to your computer and use it in GitHub Desktop.
Customize webpack configuration of React App created with Create-react-app. Scripts added to index.html
// public/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<script type="text/javascript" src="/dist/legacyLib.js"></script>
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment