Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
taishinaritomi committed Sep 17, 2023
1 parent c7b6aa6 commit 00ee57c
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ Setting up the compiler based on the bundler.
// next.config.mjs
import createExcss from "excss/next";

const withExcss = createExcss({
/* excss options */
});
const withExcss = createExcss();

/** @type {import('next').NextConfig} */
const nextConfig = {};
Expand All @@ -100,11 +98,7 @@ import Excss from "excss/vite";
import { defineConfig } from "vite";

export default defineConfig({
plugins: [
Excss({
/* excss options */
}),
],
plugins: [Excss()],
});
```

Expand All @@ -123,11 +117,22 @@ export default {
},
],
},
plugins: [
new ExcssPlugin({
/* excss options */
}),
new MiniCssExtractPlugin(),
],
plugins: [new ExcssPlugin(), new MiniCssExtractPlugin()],
};
```

## excss.config.ts

```ts
// excss.config.ts
import { defineConfig, variants } from "excss/config";

export default defineConfig({
include: /\.(ts|tsx)$/,
helper: `
${variants({
primary: "red",
})}
`,
});
```

0 comments on commit 00ee57c

Please sign in to comment.