static beforeLoaders({ context, type, injectGlobalStyles }) {
        const loaders = [];

        if (context.globalStyles && injectGlobalStyles) {
            let resources =
                CssWebpackConfig.normalizeGlobalStyles(context, context.globalStyles)[
                    type
                ] || [];

            if (resources.length) {
                loaders.push({
                    loader: context.resolve('sass-resources-loader'),
                    options: {
                        hoistUseStatements: true,
                        resources
                    }
                });
            }
        }

        return loaders;
    }
Gets a list of loaders to run

This handles inlining or extraction of CSS based on context.
The default is to inline styles

@param {object} options
@param {import('../Mix')} options.context
@param {string} options.type The file type
@param {boolean} options.injectGlobalStyles Whether or not to inject global styles