sassResourcesLoader: {
    overrideWebpackConfig: ((__namedParameters) => Configuration);
}

Type declaration

  • overrideWebpackConfig: ((__namedParameters) => Configuration)
      • (__namedParameters): Configuration
      • Parameters

        • __namedParameters: {
              pluginOptions: {
                  hoistUseStatements?: boolean;
                  resources: string | string[];
              };
              webpackConfig: Configuration;
          }
          • pluginOptions: {
                hoistUseStatements?: boolean;
                resources: string | string[];
            }
            • Optional hoistUseStatements?: boolean
            • resources: string | string[]
          • webpackConfig: Configuration

        Returns Configuration

Description

sass-resources-loader的craco版本插件

Exports

sass-resources-loader

Since

1.0.1

See

https://github.com/shakacode/sass-resources-loader#readme

Example

craco.config.js

const { sassResourcesLoader } = '@biulight/craco-config-extensions'

module.exports = {
plugins: [
{
plugin: sassResourcesLoader,
options: {
resources: 'example/a.scss'
}
}
]
}

Generated using TypeDoc