Skip to content

Commit

Permalink
fixed error when running yarn start (#164)
Browse files Browse the repository at this point in the history
I created a repo from the template, but when I ran yarn start it gave me an error saying that contentBase is an unknown property. Apparently this has been renamed to the property "static", and when I changed the code to this, it fixed the error. I haven't looked into it that much though, so I'm not sure if this is definitely the correct fix for what you guys intended

These are the links I read:
https://gist.github.com/johnrichardrinehart/c8ec6ab1e60f39fc3b8dc738db649ec0
webpack/webpack-dev-server#2958 (comment)
https://stackoverflow.com/questions/67926476/webpack-dev-server-config-contentbase-not-working-in-latest-version
https://stackoverflow.com/questions/70309830/webpack-dev-server-config-contentbase-not-working
  • Loading branch information
ColbertX committed Jun 24, 2022
1 parent cfeaf4c commit 79d438e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = merge(common, {
},
devtool: 'inline-source-map',
devServer: {
contentBase: './dist',
static: './dist',
historyApiFallback: true,
hot: true,
port: 3000,
Expand Down

0 comments on commit 79d438e

Please sign in to comment.