Merge pull request #84 from cascadian/master

handle platform-specific image files when running use-figwheel
This commit is contained in:
Artūr Girenko 2016-11-28 20:05:54 +01:00 committed by GitHub
commit ca1c5b0040
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ scanImageDir = (dir) ->
.filter (path) -> fs.statSync(path).isFile()
.filter (path) -> removeExcludeFiles(path)
.map (path) -> path.replace /@2x|@3x/i, ''
.map (path) -> path.replace new RegExp(".(android|ios)" + fpath.extname(path) + "$", "i"), fpath.extname(path)
.filter (v, idx, slf) -> slf.indexOf(v) == idx
dirs = fs.readdirSync(dir)