Skip to content

Webpack sass loader does not recognize global variables file #218

@NetanelBasal

Description

@NetanelBasal

I have this sass directory:

  • _vars.scss
  • main.scss

//main.scss

@import './vars';

In other js file i have:

require('./some-module-sass-file');

The problem is I have global variables in the vars file and the some-module-sass-file not recognize them and throw an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions