Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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