Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Supporting option for dart-sass ? ( or drop node-sass as dependency ) #16

Open
@fsubal

Description

Maybe it could be solved by making a fork (since this package is **node-sass-**asset-functions )


Some people are now using dart-sass (or sass ) instead of node-sass, because of the painfulness caused by the native extension :(

Like sass-loader made itself sass-implementation-agnostic, it would be great to make node-sass-asset-functions also implementation-agnostic.

I found that node-sass-asset-functions itself runs well with sass, but even when I don't need node-sass as dependency, install node-sass-asset-functions forces my machine to rebuild node-sass.

2018年09月12日 23 35 19

How it should be like?

Taking sass module as a parameter

assetFunctions({
 ....
 implementation: require('node-sass') // or require('sass')
})
// or even...
assetFunctionsFor(require('node-sass'))({
 ....
})

Then drop node-sass from dependencies, and it allows users to avoid forced rebuilding node-sass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /