Skip to content

Commit 5b97367

Browse files
JohnDalynexxelnjuliusmarminge
authored
feat: updating tailwind and postcss config's to use .cjs (#242)
Co-authored-by: Shoubhit Dash <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
1 parent 5aa3865 commit 5b97367

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/installers/tailwind.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export const tailwindInstaller: Installer = async ({
1414

1515
const twAssetDir = path.join(PKG_ROOT, "template/addons/tailwind");
1616

17-
const twCfgSrc = path.join(twAssetDir, "tailwind.config.js");
18-
const twCfgDest = path.join(projectDir, "tailwind.config.js");
17+
const twCfgSrc = path.join(twAssetDir, "tailwind.config.cjs");
18+
const twCfgDest = path.join(projectDir, "tailwind.config.cjs");
1919

20-
const postcssCfgSrc = path.join(twAssetDir, "postcss.config.js");
21-
const postcssCfgDest = path.join(projectDir, "postcss.config.js");
20+
const postcssCfgSrc = path.join(twAssetDir, "postcss.config.cjs");
21+
const postcssCfgDest = path.join(projectDir, "postcss.config.cjs");
2222

2323
const cssSrc = path.join(twAssetDir, "globals.css");
2424
const cssDest = path.join(projectDir, "src/styles/globals.css");

template/addons/tailwind/tailwind.config.js renamed to template/addons/tailwind/tailwind.config.cjs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/** @type {import('tailwindcss').Config} */
2-
32
module.exports = {
43
content: ["./src/**/*.{js,ts,jsx,tsx}"],
54
theme: {

0 commit comments

Comments
 (0)