connect-history-api-fallback icon indicating copy to clipboard operation
connect-history-api-fallback copied to clipboard

static/js notfound

Open guoxiangwen opened this issue 6 years ago • 1 comments

app.use(express.static(path.resolve(__dirname, config.outputDir))); app.use(express.static(path.resolve(__dirname, './../files'))); app.use(history({

}));

app.use(express.static(path.resolve(__dirname, config.outputDir))); app.use(express.static(path.resolve(__dirname, './../files')));

when i set this. it found static/js/xxx.js not found image

guoxiangwen avatar Jan 11 '18 02:01 guoxiangwen

This line app.use(history());

should come before this line app.use(express.static(path.join(__dirname, '..', 'client', 'dist')));

trollepierre avatar Nov 17 '18 14:11 trollepierre