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

File to import not found or unreadable: compass #100

Closed
legend80s opened this issue Oct 11, 2016 · 1 comment
Closed

File to import not found or unreadable: compass #100

legend80s opened this issue Oct 11, 2016 · 1 comment

Comments

@legend80s
Copy link

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
Copy link
Author

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")]
  }
};

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

No branches or pull requests

1 participant