Skip to content

Commit

Permalink
integrated windii styles in next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
christabusho committed Jul 29, 2024
1 parent 1b8176f commit cd24980
Show file tree
Hide file tree
Showing 6 changed files with 382 additions and 206 deletions.
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@ const nextConfig = {
reactStrictMode: true,
};

const WindiCSSWebpackPlugin = require('windicss-webpack-plugin');

module.exports = {
...nextConfig,
webpack: (config) => {
config.plugins.push(new WindiCSSWebpackPlugin({
virtualModulePath: 'src/virtual:windi.css',
}));
//console.log("Webpack config:", config);
return config;
},
/*
env: {
GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID,
Expand Down
Loading

0 comments on commit cd24980

Please sign in to comment.