I am trying to optimize a project with r.js and am confused about how to exclude a certain folder from the copy step. My structure is…
/index.htm
/scripts/main.js
/scripts/require.js
/scripts/libs/jquery/jquery.js
/scripts/libs/other/ /* I want NONE of this folder to be moved to the build */
Is it possible to do this?
In your build config you can exclude files and folders using the
fileExclusionRegExpproperty.So for you example you would have:
This will exclude any folders or files called other.