jrburke/r.js — Issue #40: copyDir() skips over files with a '.' prefix
Author: aradabaugh
Created: 2011-11-15 20:33:45+00:00
State: open

When optimizing an app I noticed that r.js does not copy any files starting with a period (.) to the new "build" location. Specifically it is skipping .htaccess. There is a regexp to skip over hidden directories but that isn't it exactly. Looking inside r.js, the RegExp `/\w/` is used when calling `file.getFilteredFileList`.