Skip to content

Instantly share code, notes, and snippets.

@yokotak0527
Created August 23, 2019 10:16
Show Gist options
  • Save yokotak0527/34edd8d726820dfa0655fb88bab60632 to your computer and use it in GitHub Desktop.
Save yokotak0527/34edd8d726820dfa0655fb88bab60632 to your computer and use it in GitHub Desktop.
globでファイル一覧取得
// node_modulesを除くjsファイル
glob.sync('{,!(node_modules)/**/}[!_]*.js')
// node_modulesを除くSassファイル (.sassと.scss)
glob.sync('{,!(node_modules)/**/}[!_]*.s[a|c]ss')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment