Url for router, when using webpack?

Greetings. I need to get the desired page by url.
I’ve already asked this question and found the answer.
url for router
But now I’m using webpack and I can’t specify the full path to the file in router.js, because it is not there - it is compressed into one file.
Tell me how to be?

You probably need this https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback

tried different options like

    historyApiFallback: {
      rewrites: [
        { from: /^\/$/, to: '/index.html' },
      ]
    }

or

    historyApiFallback: {
      index: 'index.html'
    }

i have in console “Unable to fetch script source”,
or index.html listing…

I don’t understand how it works (
help, please

I don’t understand how it works (
url is parsed by the router, connects the required file * .f7.html, without webpack everything works, when specifying the full path to the file…
help, please