File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,10 @@ const laravelModule = function (overwrites) {
122
122
}
123
123
_serverInitialized = true ;
124
124
const nuxtServer = options . server ;
125
- if ( fs_extra_1 . default . existsSync ( config . laravel . public ) &&
125
+ if ( fs_extra_1 . default . existsSync ( config . output . dest ) &&
126
126
config . output . dest . replace ( config . laravel . public , '' ) . length > 1 ) {
127
- utils_1 . logger . warn ( 'Removing production build to avoid conflicts with dev server' ) ;
127
+ utils_1 . logger . warn ( `Removing production build from: ${ config . output . dest }
128
+ to avoid conflicts with dev server` ) ;
128
129
fs_extra_1 . default . removeSync ( config . output . dest ) ;
129
130
}
130
131
// retrieve dev server URL
Original file line number Diff line number Diff line change @@ -191,11 +191,12 @@ const laravelModule: Module<Options> = function(overwrites) {
191
191
const nuxtServer = options . server !
192
192
193
193
if (
194
- fs . existsSync ( config . laravel . public ) &&
194
+ fs . existsSync ( config . output . dest ) &&
195
195
config . output . dest . replace ( config . laravel . public , '' ) . length > 1
196
196
) {
197
197
logger . warn (
198
- 'Removing production build to avoid conflicts with dev server'
198
+ `Removing production build from: ${ config . output . dest }
199
+ to avoid conflicts with dev server`
199
200
)
200
201
fs . removeSync ( config . output . dest )
201
202
}
You can’t perform that action at this time.
0 commit comments