Dojo >= 1.7 build - remove files merged/inlined by process.

105 Views Asked by At

The Dojo build does 2 basic things:

  • it merges JS modules into layer files and flatteden NLS files
  • it inlines CSS imports

But everything is copied to the release folder.

As difference to the question Dojo 1.7 custom build - How to remove unused files from the release folder, I want to keep modules that are 'unused' by build - the modules that are not merged into layers would be impossible to use if deleted.

But I want to delete every resource that was merged/flattened/inlined.

Is it possible to configure Dojo build to remove processed resources, or plug in into the build process to do that? Doing that in custom script isn't so hard for CSS, but for JS module I'd need to analyze module dependencies, which is exactly what the build tool does.

0

There are 0 best solutions below