anephenix/ui

View on GitHub
next.config.js

Summary

Maintainability
A
1 hr
Test Coverage
const path = require('path');

const applyWebpackConfig = (test = /\.jsx/) => {
    return (config, options) => {
        config.module.rules.push({
            test,
            use: [options.defaultLoaders.babel],
        });
        return config;
    };
};

module.exports = {
    sassOptions: {
        includePaths: [
            path.resolve('node_modules'),
            path.resolve('src/components'),
            path.resolve('design-system'),
            path.join(__dirname, 'styles'),
        ],
    },
    webpack: applyWebpackConfig(),
};