Requirejs optimize tool exclude folders

前端 未结 2 1198
春和景丽
春和景丽 2020-12-30 01:54

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

2条回答
  •  一向
    一向 (楼主)
    2020-12-30 02:20

    In your build config you can exclude files and folders using the fileExclusionRegExp property.

    So for you example you would have:

    fileExclusionRegExp: /^other$/
    

    This will exclude any folders or files called other.

提交回复
热议问题