Browse Source

Updated absolute js URLs to relative.

gwillz 2 years ago
parent
commit
ec08d9a1ec
2 changed files with 3 additions and 5 deletions
  1. 3 4
      public/index.html
  2. 0 1
      webpack.config.js

+ 3 - 4
public/index.html

@@ -6,15 +6,14 @@
     <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
     <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
     
-    <script type="text/javascript" src="/vendors~index.js"></script>
-    <script type="text/javascript" src="/vendors~index~plugins.js"></script>
-    <link rel="stylesheet" type="text/css" href="/index.css">
+    <script type="text/javascript" src="./vendors~index.js"></script>
+    <script type="text/javascript" src="./vendors~index~plugins.js"></script>
     
     <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,700">
     <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Arimo:700,700italic">
 </head>
 <body>
     <div id="root"></div>
-    <script type="text/javascript" src="/index.js"></script>
+    <script type="text/javascript" src="./index.js"></script>
 </body>
 </html>

+ 0 - 1
webpack.config.js

@@ -13,7 +13,6 @@ module.exports = {
         // filename: isProduction ? '[id].[chunkhash].js' : '[id].js',
         filename: '[name].js',
         path: path.resolve(__dirname, 'public'),
-        publicPath: "/",
         pathinfo: false,
     },
     mode: presetMode,