Skip to content

Provided types #1029

@PierBJX

Description

@PierBJX

Feature Proposal

Is it possible to have types to have autocompletion when adding the options of the sassLoader?
Such like that:

const sassOptions: SassOptions = {
   implementation: require("sass"),
   ...
}
module.exports = {
  module: {
    rules: [
      {
        test: /\.s[ac]ss$/i,
        use: [
          "style-loader",
          "css-loader",
          {
            loader: "sass-loader",
            options: sassOptions,
          },
        ],
      },
    ],
  },
};

I know there is @types/sass-loader but not sure it is quite relevant since there is @types/webpack required.

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