Closed HIRANO-Satoshi closed 2 years ago
I'm submitting a bug report
Please tell us about your environment:
Operating System: OSX 11.6.2
Node Version: v17.4.0 (latest)
NPM Version: 8.3.1 (latest)
Loader/bundler: Webpack 5.66.0 (latest)
Current behavior:
aurelia-cli generates settings for pushState as follows on webpack.config.js. When we reload a page with a deep URL, bundles are not loaded.
const baseUrl = ''; historyApiFallback: true,
Here is an explanation.
output.publicPath: should be an absolute path. So, baseUrl has to be '/' instead of ''.
output.publicPath:
const baseUrl = '/'; historyApiFallback: true,
Thx! Fixed.
I'm submitting a bug report
Please tell us about your environment:
Operating System: OSX 11.6.2
Node Version: v17.4.0 (latest)
NPM Version: 8.3.1 (latest)
Loader/bundler: Webpack 5.66.0 (latest)
Current behavior:
aurelia-cli generates settings for pushState as follows on webpack.config.js. When we reload a page with a deep URL, bundles are not loaded.
Here is an explanation.
output.publicPath:
should be an absolute path. So, baseUrl has to be '/' instead of ''.