File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1630,7 +1630,7 @@ class Server {
1630
1630
} ) ;
1631
1631
}
1632
1632
1633
- if ( this . options . static ) {
1633
+ if ( this . options . static . length > 0 ) {
1634
1634
this . options . static . forEach ( ( staticOption ) => {
1635
1635
staticOption . publicPath . forEach ( ( publicPath ) => {
1636
1636
middlewares . push ( {
@@ -1672,7 +1672,7 @@ class Server {
1672
1672
middleware : this . middleware ,
1673
1673
} ) ;
1674
1674
1675
- if ( this . options . static ) {
1675
+ if ( this . options . static . length > 0 ) {
1676
1676
this . options . static . forEach ( ( staticOption ) => {
1677
1677
staticOption . publicPath . forEach ( ( publicPath ) => {
1678
1678
middlewares . push ( {
@@ -1688,7 +1688,7 @@ class Server {
1688
1688
}
1689
1689
}
1690
1690
1691
- if ( this . options . static ) {
1691
+ if ( this . options . static . length > 0 ) {
1692
1692
const serveIndex = require ( "serve-index" ) ;
1693
1693
1694
1694
this . options . static . forEach ( ( staticOption ) => {
@@ -2015,7 +2015,7 @@ class Server {
2015
2015
}
2016
2016
}
2017
2017
2018
- if ( this . options . static && this . options . static . length > 0 ) {
2018
+ if ( this . options . static . length > 0 ) {
2019
2019
this . logger . info (
2020
2020
`Content not from webpack is served from '${ colors . info (
2021
2021
useColor ,
You can’t perform that action at this time.
0 commit comments