Ionic v3 sass.config.js ignore excludeFiles regex #1541

Description
Short description of the problem:
I have added sass.config.js file and properly configured on package.json.
I set this to accept every scss/css on includeFiles and exclude other scss through regex but it doesn't work because i see every styles on main.css builded.
This is my sass.config.js:
`module.exports = {
outputFilename: process.env.IONIC_OUTPUT_CSS_FILE_NAME,
sourceMap: false,
outputStyle: 'expanded',
autoprefixer: {
browsers: [
'last 2 versions',
'iOS >= 8',
'Android >= 4.4',
'Explorer >= 11',
'ExplorerMobile >= 11'
],
cascade: false
},
includePaths: [
'node_modules/ionic-angular/themes',
'node_modules/ionicons/dist/scss',
'node_modules/ionic-angular/fonts'
],
includeFiles: [
/.(s(c|a)ss)$/i
],
excludeFiles: [
/^(.*_(?=name).*\.scss$)/igm
//i want to exclude every xyz_name.scss (tested on regex101.com)
],
variableSassFiles: [
'{{SRC}}/theme/variables.scss'
],
directoryMaps: {
'{{TMP}}': '{{SRC}}'
},
excludeModules: [
'@angular',
'commonjs-proxy',
'core-js',
'ionic-native',
'rxjs',
'zone.js'
]
};`
What behavior are you expecting?
I expect that build every .scss except "_name.scss"
Steps to reproduce:
- use my sass.config.js
- create some *_name.scss
- ionic-app-scripts serve
- you see all the scss
Which @ionic/app-scripts version are you using?
3.1.10
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)