Merge pull request #39 from designbyjosh/fix-dev-server

Fixed publicPath for dev server
This commit is contained in:
Paul Graffam 2021-04-05 11:37:28 -04:00 committed by GitHub
commit 889093011e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ module.exports = env => {
// must be an absolute path (use the Node.js path module)
path: outputPath,
// the url to the output directory resolved relative to the HTML page
publicPath: 'js',
// should include at least trailing slash
publicPath: '/js/',
// the filename template for entry chunks
filename: '[name].bundle.js',
chunkFilename: '[name].bundle.js',