From 94a6d4650586b4e964648aafa0a33b6936def3d9 Mon Sep 17 00:00:00 2001 From: Diego Haz Date: Fri, 22 Sep 2017 12:10:10 -0300 Subject: [PATCH] Support .sass extension --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index bbcff3b..f0f8a1b 100644 --- a/src/utils.js +++ b/src/utils.js @@ -38,7 +38,7 @@ export const isSingleFile = (path: string): boolean => { } export const getFiles = (cwd: string, componentName?: string): string[] => { - const extensions = '{js,ts,jsx,tsx,css,less,scss,sss,json}' + const extensions = '{js,ts,jsx,tsx,css,less,scss,sass,sss,json}' const pattern = componentName ? `**/${componentName}{.,.*.}${extensions}` : `**/*.${extensions}` return glob.sync(pattern, { cwd, absolute: true, nodir: true }) }