Try this pattern: ['*.scss', '!_*.scss']. This will make the selection more explicit.
sass: {
compile: {
files: [{
expand: true,
cwd: 'css/',
src: ['*.scss', '!_*.scss'],
dest: '../css/',
ext: '.css'
}]
}
},
If you want to match recursively (files in subfolders cwd), use**/*
sass: {
compile: {
files: [{
expand: true,
cwd: 'css/',
src: ['**/*.scss', '!**/_*.scss'],
dest: '../css/',
ext: '.css'
}]
}
},
Learn more about Grunt globe patterns that don't match regular expressions.