Hi, I am using a simple gulp-sass task while using node-sass-import-once, and as soon as I reference in one of my .scss files a @import of a file without _xxxx.scss (underscore + file extension), it fails to find it...
var sass = require('gulp-sass'),
nodeSass = require('node-sass'),
importOnce = require('node-sass-import-once')
gulp.task('sass', function () {
return gulp.src(CONFIG.scss + '**/*.{scss,sass}')
.pipe(sass({includePaths: CONFIG.importPath, importer: importOnce}).on('error', sass.logError))
.pipe(gulp.dest(CONFIG.app + 'assets/style'));
});
@import '../../app/components/layout/container/container.ui-layout';
Error: Could not import `../../app/components/layout/container/container.ui-layout` from any of the following locations:
/Users/user/projects/project/src/main/webapp/app/components/layout/container/container.ui-layout
/Users/user/projects/project/src/main/webapp/app/components/layout/container/container.ui-layout
/Users/user/projects/project/src/main/app/components/layout/container/container.ui-layout
It specifically needs to be explicited by specifying underscore + extension to work, like in
@import '../../app/components/layout/container/_container.ui-layout.scss';
Is this the desired behaviour ?
Hi, I am using a simple gulp-sass task while using node-sass-import-once, and as soon as I reference in one of my .scss files a @import of a file without _xxxx.scss (underscore + file extension), it fails to find it...
It specifically needs to be explicited by specifying underscore + extension to work, like in
Is this the desired behaviour ?