Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fabm22 opened this issue Jan 25, 2016 · 4 comments

Comments

@fabm22
Copy link

fabm22 commented Jan 25, 2016

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 ?

@fabm22 fabm22 changed the title Doesn't seem to see the files referenced when referenced without underscore at beginning + file extension. Doesn't seem to see the files when referenced without underscore at beginning + file extension. Jan 25, 2016
@jonhurrell
Copy link

Just hit this same issue now.

@Snugug
Copy link
Member

Snugug commented Feb 21, 2016

Was this resolved by #26?

@jonhurrell
Copy link

Issue persists for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@fabm22 @Snugug @jonhurrell and others