Html-webpack-plugin: historyApiFallback + generated script/link tags

Created on 9 Oct 2015  路  5Comments  路  Source: jantimon/html-webpack-plugin

Currently, the plugin generates this:

<script src="app.js?6be84a4f96612dd43e8d"></script>

But, when using webpack-dev-server + historyApiFallback and html5 routing (react-router, for example), it fails to fetch the correct file.

Example:

Maybe we should add an option to add the root slash or something

Most helpful comment

oh, ok. setting publicPath worked indeed. Thanks!

  output: {
    publicPath: '/',
  }

All 5 comments

wouldn't solve setting a publicPath your issue?

set publicPath to what?

oh, ok. setting publicPath worked indeed. Thanks!

  output: {
    publicPath: '/',
  }

Would it make sense to include this hint somewhere in the docs? :)

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

meleyal picture meleyal  路  3Comments

Rowno picture Rowno  路  3Comments

yyx990803 picture yyx990803  路  4Comments

lonelydatum picture lonelydatum  路  3Comments

lonelyclick picture lonelyclick  路  3Comments