Skip to content

Commit 3dd8e42

Browse files
tech(common): webpack-dev-server v4 config updated (#21)
1 parent 412a849 commit 3dd8e42

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

recipes/basic/snippets/webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ module.exports = {
9191
devServer: {
9292
open: true,
9393
historyApiFallback: true,
94-
contentBase: "./${sourceDir.main}/${sourceDir.static}",
94+
static: {
95+
directory: "./${sourceDir.main}/${sourceDir.static}",
96+
},
9597
hot: true,
9698
port: ${portNumber},
9799
proxy: {

recipes/slim/snippets/webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ module.exports = {
7878
devServer: {
7979
open: true,
8080
historyApiFallback: true,
81-
contentBase: "./${sourceDir.main}/${sourceDir.static}",
81+
static: {
82+
directory: "./${sourceDir.main}/${sourceDir.static}",
83+
},
8284
hot: true,
8385
port: ${portNumber},
8486
proxy: {

0 commit comments

Comments
 (0)