Skip to content

Doesn't seem to see the files when referenced without underscore at beginning + file extension. #25

Description

@fabm22

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions