How to use the razzle/config/paths.appBuild function in razzle

To help you get started, we’ve selected a few razzle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thorgate / django-project-template / {{cookiecutter.repo_name}} / app / razzle.config.js View on Github external
config.module.rules.filter(cssLoaderFinder).forEach((rule) => {
            const isCssModuleRule = !rule.test.test('module.css');

            const scssExclude = [paths.appBuild];
            let scssTest = /\.s[ac]ss$/;
            if (isCssModuleRule) {
                scssTest = /\.module\.s[ac]ss$/;
            } else {
                scssExclude.push(/\.module\.s[ac]ss$/);
            }

            // Use default configs
            config.module.rules.push({
                test: scssTest,
                exclude: scssExclude,
                use: [
                    ...rule.use,
                    scssLoader,
                ]
            });

razzle

Create server-rendered universal JavaScript applications with no configuration

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis