sass-loader
sass-loader copied to clipboard
Provided types
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.
PR welcome, we use typescript jsdocs
What is your strategy to add typings ?
Here configuration and examples of our types using jsdocs https://github.com/webpack-contrib/compression-webpack-plugin