Skip to content

Commit

Permalink
tech(common): webpack-dev-server v4 config updated (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshmurugesan authored Dec 8, 2021
1 parent 412a849 commit 3dd8e42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion recipes/basic/snippets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ module.exports = {
devServer: {
open: true,
historyApiFallback: true,
contentBase: "./${sourceDir.main}/${sourceDir.static}",
static: {
directory: "./${sourceDir.main}/${sourceDir.static}",
},
hot: true,
port: ${portNumber},
proxy: {
Expand Down
4 changes: 3 additions & 1 deletion recipes/slim/snippets/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ module.exports = {
devServer: {
open: true,
historyApiFallback: true,
contentBase: "./${sourceDir.main}/${sourceDir.static}",
static: {
directory: "./${sourceDir.main}/${sourceDir.static}",
},
hot: true,
port: ${portNumber},
proxy: {
Expand Down

0 comments on commit 3dd8e42

Please sign in to comment.