WebLoader
WebLoader copied to clipboard
Change batch files loading via Nette\Finder?
trafficstars
List of files to load is determined on Nette DIC compile time when files are loaded by
- {files: ["*.css", "*.less"], from: %appDir%/presenters}
This means that new files are not added immediately when new file is created. Nette DIC cache has to be invalidated in this situation.
On the other side, resolving file list on compile time does not slow down each http request.
To me, it's a feature. In debug mode, we could make it checking for files on every request, but in production mode it should be resolving on compile-time.
@fprochazka +1