juanca / sprockets-preloader

Webpack pre-loader to easily translate sprockets require directives into npm module requires
6 stars 5 forks source link

Ignore files that do not pass `test` #10

Open juanca opened 8 years ago

juanca commented 8 years ago

Files pulled in from require_tree and require_directory should ignore any file that does not pass the configuration options for the loader.

e.g.

  test: /assets\/.*(\.js|\.coffee|\.jst)$/

This should automatically ignore all .md, .erb, and .DS_Store files!