Skip to content

Commit

Permalink
Fix production dapp build paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ziogaschr committed Apr 2, 2019
1 parent 12b3660 commit 1883077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dapp/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = {
filename: 'static/js/[name].[chunkhash:8].js',
chunkFilename: 'static/js/[name].[chunkhash:8].chunk.js',
// We inferred the "public path" (such as / or /my-project) from homepage.
publicPath: '.' + publicPath,
publicPath: publicPath,
// Point sourcemap entries to original disk location (format as URL on Windows)
devtoolModuleFilenameTemplate: info =>
path
Expand Down
8 changes: 4 additions & 4 deletions dapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href=".%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href=".%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -21,7 +21,7 @@
-->
<title>Portal Network - Big and Small</title>

<script type="text/javascript" src=".%PUBLIC_URL%/scripts/web3-ebakus.browser.js"></script>
<script type="text/javascript" src="%PUBLIC_URL%/scripts/web3-ebakus.browser.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.2.0/js/all.js" integrity="sha384-4oV5EgaV02iISL2ban6c/RmotsABqE4yZxZLcYMAdG7FAPsyHYAPpywE9PJo+Khy" crossorigin="anonymous"></script>
</head>

Expand All @@ -38,6 +38,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script type="text/javascript" src=".%PUBLIC_URL%/scripts/wallet-loader.min.js"></script>
<script type="text/javascript" src="%PUBLIC_URL%/scripts/wallet-loader.min.js"></script>
</body>
</html>

0 comments on commit 1883077

Please sign in to comment.