mirror of
https://github.com/gregberge/loadable-components.git
synced 2026-01-18 15:12:26 +00:00
14 lines
362 B
JavaScript
14 lines
362 B
JavaScript
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const stats = fs.readFileSync(
|
|
'../examples/server-side-rendering/public/dist/node/loadable-stats.json',
|
|
'utf-8',
|
|
)
|
|
const localPath = path.resolve(__dirname, '..')
|
|
// write cleaned from PII data
|
|
fs.writeFileSync(
|
|
'../packages/server/__fixtures__/stats.json',
|
|
stats.split(localPath).join('../..'),
|
|
)
|