janmarek / WebLoader

Nette Framework addon for CSS and JS files loading
108 stars 84 forks source link

Change batch files loading via Nette\Finder? #57

Open janmarek opened 10 years ago

janmarek commented 10 years ago

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.

fprochazka commented 10 years ago

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.

bckp commented 10 years ago

@fprochazka +1