Skip to content

Commit 0bcdab1

Browse files
fix: contentBase is deprecated in Webpack v5
Webpack v5 is not using contentBase, recommended to use static option instead. Following the documentation: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
1 parent 36397f5 commit 0bcdab1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/7/es/part7d.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,9 @@ const config = {
515515
},
516516
// highlight-start
517517
devServer: {
518-
contentBase: path.resolve(__dirname, 'build'),
518+
static: {
519+
directory: path.resolve(__dirname, 'build'),
520+
},
519521
compress: true,
520522
port: 3000,
521523
},

0 commit comments

Comments
 (0)