1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-06 14:16:50 +02:00

Support react router when running web dev server

This commit is contained in:
Phuoc Nguyen
2019-11-23 14:38:44 +07:00
parent 39739a7ab9
commit 0c73e56a1a
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
</head> </head>
<body class="avenir w-100"> <body class="avenir w-100">
<div id="root"></div> <div id="root"></div>
<script src="./bundle.js"></script> <script src="/bundle.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-139616701-3"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-139616701-3"></script>
<script> <script>
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];

View File

@@ -24,6 +24,7 @@ module.exports = {
}, },
devtool: 'cheap-module-eavl-source-map', devtool: 'cheap-module-eavl-source-map',
devServer: { devServer: {
contentBase: path.join(__dirname, 'dist') contentBase: path.join(__dirname, 'dist'),
historyApiFallback: true,
}, },
}; };