next.js/test/integration/css-fixtures/custom-configuration-loader/next.config.js
next.config.js21 lines409 B
const config = {
  webpack: (config, { defaultLoaders }) => {
    config.module.rules.push({
      test: /\.css$/,
      use: [
        defaultLoaders.babel,
        {
          loader: require('styled-jsx/webpack').loader,
          options: {
            type: (fileName, options) => options.query.type || 'scoped',
          },
        },
      ],
    })

    return config
  },
}

module.exports = config
Quest for Codev2.0.0
/
SIGN IN