Igosuki / compass-mixins

A collection of compass' stylesheet for bower dependencies and libsass
Other
592 stars 197 forks source link

File to import not found or unreadable: compass #100

Closed legend80s closed 7 years ago

legend80s commented 7 years ago

When I prepend @import "compass"; before the scss files, the Webpack sass-loader complains about:

modulesModuleBuildError: Module build failed: @import "compass"; ^ File to import not found or unreadable: compass

legend80s commented 7 years ago

Solved! An includePaths should be configured, When works with sass-loader

module.exports = {
  ...
  module: {
    loaders: [
      {
        test: /\.scss$/,
        loaders: ["style", "css", "sass"]
      }
    ]
  },
  sassLoader: {
    includePaths: [path.resolve(__dirname, "./node_modules/compass-mixins/lib")]
  }
};