Dynamic basename ('/' or '/iris/') depending on initial path; Webpack dev server fully functional

This commit is contained in:
James Barnsley
2022-10-30 16:29:56 +13:00
parent 84bc77a7d6
commit 7564c1bdee
11 changed files with 58 additions and 53 deletions

View File

@ -98,6 +98,12 @@ const config = {
devtool: (isDev ? 'source-map' : false),
devServer: {
historyApiFallback: true,
static: [
{
directory: path.join(__dirname, 'mopidy_iris', 'static', 'assets'),
publicPath: '/assets/',
},
],
},
};