diff --git a/config/sass.config.js b/config/sass.config.js index b06b858f3..e13f6ff2e 100644 --- a/config/sass.config.js +++ b/config/sass.config.js @@ -5,5 +5,11 @@ module.exports = { 'node_modules/ionicons/dist/scss', 'node_modules/ionic-angular/fonts', 'node_modules/font-awesome/scss' + ], + includeFiles: [ + /\.(s(c|a)ss)$/i + ], + excludeFiles: [ + /\.(wp).(scss)$/i ] }; \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 0a4596073..fbeead754 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -317,6 +317,11 @@ function getReplace(capture, baseDir, paths, parsedFiles) { var parse = path.parse(path.resolve(baseDir, capture + '.scss')); var file = parse.dir + '/' + parse.name; + if (file.slice(-3) === '.wp') { + console.log('Windows Phone not supported "' + capture); + // File was already parsed, leave the import commented. + return '// @import "' + capture + '";'; + } if (!fs.existsSync(file + '.scss')) { // File not found, might be a partial file.