Skip to content

Commit

Permalink
Add trailing slash to default public path (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck authored Mar 9, 2023
1 parent 4a46038 commit 6567765
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function plugin(app, options) {
if (page.res.locals.webpack) {
assets = middlewareAssets(page);
} else {
assets = readManifestAssets( './public/manifest.json');
assets = readManifestAssets('./public/manifest.json');
}
const scriptTags = assets.map(path =>
`<script ${scriptCrossOrigin ? 'crossorigin ' : ''}src="${baseUrl}${path}" type="text/javascript"></script>`
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = function(webpack, apps, rootDir, opts = {}) {
chunkFilename: '[id]-[chunkhash].js',
clean: true,
path: path.resolve(rootDir, './public/derby'),
publicPath: '/derby',
publicPath: '/derby/',
},
devtool: 'source-map',
module: {
Expand Down

0 comments on commit 6567765

Please sign in to comment.