Skip to content

__dirname is not defined in Angular 6 app #100

@chrisbenseler

Description

@chrisbenseler

I'm trying to use Sass.js, in the browser, in an angular app.
Reading the docs, there is in the getting started the section "Using Sass.js with a module loader" that says to load
var Sass = require('sass.js/dist/sass');

the browser outputs
"Uncaught ReferenceError: __dirname is not defined
at sass.js:28"

Is it possible to use the sass.js this way?

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