Skip to content

Instantly share code, notes, and snippets.

@bashmish
bashmish / glob-exclude-dir.js
Last active September 23, 2017 15:58
minimatch / glob exclude directory (folder, dir)
const minimatch = require('minimatch');
const paths = [
'build/my-file.js',
'build/my-component/my-file.js',
'node_modules/my-file.js',
'node_modules/my-module/my-file.js',
'my-file.js',
'src/my-file.js',
'src/sub-dir/my-file.js'
@bashmish
bashmish / SassMeister-input.scss
Created September 4, 2015 17:13
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.module {
padding: 10px;
&--modfier {
color: red;
}