Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit d191eda

Browse files
committed
feat(e2e/site): add next-plugin
1 parent 9f79ab9 commit d191eda

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

e2e/site/next.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const { TypedCSSXNextPlugin, configCSSModule } = require('typedcssx-next-plugin');
3+
const nextConfig = {
4+
webpack: config => {
5+
config.plugins.push(new TypedCSSXNextPlugin());
6+
return configCSSModule(config);
7+
},
8+
};
39

410
module.exports = nextConfig;

e2e/site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@types/node": "^22.5.4",
1919
"@types/react": "^18",
2020
"@types/react-dom": "^18",
21+
"typedcssx-next-plugin": "^0.0.4",
2122
"typescript": "^5"
2223
}
2324
}

0 commit comments

Comments
 (0)