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:
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
<body class="avenir w-100">
|
||||
<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>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
|
@@ -24,6 +24,7 @@ module.exports = {
|
||||
},
|
||||
devtool: 'cheap-module-eavl-source-map',
|
||||
devServer: {
|
||||
contentBase: path.join(__dirname, 'dist')
|
||||
contentBase: path.join(__dirname, 'dist'),
|
||||
historyApiFallback: true,
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user