taptapship / wiredep

Wire Bower dependencies to your source code.
MIT License
1.15k stars 142 forks source link

Force remove extension on SASS #201

Closed brunowego closed 8 years ago

brunowego commented 9 years ago

Only for "pass" in linters verifications (SASS Lint for example), at this moment I need use "hack" like this:

fileTypes: {
  scss: {
    block: /(([ \t]*)\/\/\s*bower:*(\S*))(\n|\r|.)*?(\/\/\s*endbower)/gi,
    detect: {
      scss: /@import\s['"](.+\.scss)['"]/gi
    },
    replace: {
      scss: function (filePath) {
        var path = filePath.replace('.scss', '').replace('/_', '/');

        return '@import \'' + path + '\';';
      }
    }
  }
}

Will be nicer if wiredep does this automatically. Thanks!

eddiemonge commented 8 years ago

Why is it a bad thing to specify exactly what you want imported? I think this should fine and maybe that linter is a little too strict.

cyrilchapon commented 8 years ago

Well @eddiemonge, I guess this well known linter has the right philosophy and the question is not answered here.