Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

--config flag on CLI for config file #2113

@rcchen

Description

@rcchen

Searched issues for a similar feature request but couldn't find anything, apologies if this is a dupe.

I'd like to have a --config argument for the node-sass CLI that allows a JSON configuration file to be passed in.

Specifically, it would allow me to consolidate a bunch of the arguments I pass into the CLI right now into a single configuration file that can be shared across my projects.

Example (config.json)

{
  "importer": "../path/to/shared/importer",
  "output": "./dist",
  "sourceMap": true,
}

Example (usage): node-sass --config ../path/to/config.json

Happy to make the contribution if this is something that might be desirable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions