Skip to content

Commit

Permalink
style(griffel): replace opinionated css with griffel (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfrye authored Feb 19, 2024
1 parent d11f7bd commit 4ae8fcc
Show file tree
Hide file tree
Showing 14 changed files with 4,125 additions and 515 deletions.
34 changes: 31 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
import { withGriffelCSSExtraction } from '@griffel/next-extraction-plugin';

const nextConfig = withGriffelCSSExtraction()({
output: 'export',
// reactStrictMode: false,
};
webpack: (config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }) => {
config.module.rules.unshift({
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: [
{
loader: '@griffel/webpack-loader',
},
],
},
{
test: /\.(ts|tsx)$/,
exclude: /node_modules/,
use: [
{
loader: '@griffel/webpack-loader',
options: {
babelOptions: {
presets: ['next/babel'],
},
},
},
],
});

return config;
},
});

export default nextConfig;
Loading

0 comments on commit 4ae8fcc

Please sign in to comment.