File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ class DashboardPlugin {
176
176
}
177
177
] )
178
178
179
- const statsFile = path . resolve ( process . cwd ( ) , `.stats-${ this . type } .json` )
179
+ const statsFile = path . resolve ( process . cwd ( ) , `./node_modules/. stats-${ this . type } .json` )
180
180
fs . writeJson ( statsFile , {
181
181
errors : hasErrors ,
182
182
warnings : stats . hasWarnings ( ) ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ module.exports = api => {
23
23
for ( const data of message . webpackDashboardData . value ) {
24
24
if ( data . type === 'stats' ) {
25
25
// Stats are read from a file
26
- const statsFile = path . resolve ( process . cwd ( ) , `.stats-${ type } .json` )
26
+ const statsFile = path . resolve ( process . cwd ( ) , `./node_modules/. stats-${ type } .json` )
27
27
const value = await fs . readJson ( statsFile )
28
28
setSharedData ( `${ type } -${ data . type } ` , value )
29
29
await fs . remove ( statsFile )
You can’t perform that action at this time.
0 commit comments