You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In development mode with ssr server (aka express) i'm using MFS (memory-fs), but ChunkExtractor knows nothing about it.
What do i think (generalized code parts):
letloadableServerStats;letloadablClientStats;
...
/* Server config factory */constserverConfigCompiler=webpack(serverConfigFactory);constmfs=newMFS();serverConfigCompiler.outputFileSystem=mfs;serverConfigCompiler.watch({},(err,stats)=>{if(err){throwerr;}stats=stats.toJson();if(stats.errors.length){return;}loadableServerStats=JSON.parse(readFile(mfs,loadableServerStatsFilename,serverConfigFactory,));/* As example, for client side its will be devMiddleware.fileSystem (const devMiddleware = require('webpack-dev-middleware')(clientConfigCompiler)) */update(mfs);});
...
constupdate=(fsSource)=>{if(loadableServerStats&&loadableClientStats){ready();/* cb works with ChunkExtractor already */cb({
template,
loadableClientStats,
loadableServerStats,
mountId,
fsSource,});}};
...
createExtractor(stats,fsSource){// at here i want say to extractor "use this source"returnnewChunkExtractor({ fsSource, stats,entrypoints: this.getEntrypoints()});},
Motivation
Makes faster development process
Example
See higher pls
Pitch
We give the opportunity to specify a different fs (mfs) for loading assets.
The text was updated successfully, but these errors were encountered:
🚀 Feature Proposal
At now ChunkExtractor uses default node fs package:
In development mode with ssr server (aka express) i'm using MFS (memory-fs), but ChunkExtractor knows nothing about it.
What do i think (generalized code parts):
Motivation
Makes faster development process
Example
See higher pls
Pitch
We give the opportunity to specify a different fs (mfs) for loading assets.
The text was updated successfully, but these errors were encountered: