Skip to content

Commit

Permalink
feat: updating tailwind and postcss config's to use .cjs (#242)
Browse files Browse the repository at this point in the history
Co-authored-by: Shoubhit Dash <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2022
1 parent 5aa3865 commit 5b97367
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/installers/tailwind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export const tailwindInstaller: Installer = async ({

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

const twCfgSrc = path.join(twAssetDir, "tailwind.config.js");
const twCfgDest = path.join(projectDir, "tailwind.config.js");
const twCfgSrc = path.join(twAssetDir, "tailwind.config.cjs");
const twCfgDest = path.join(projectDir, "tailwind.config.cjs");

const postcssCfgSrc = path.join(twAssetDir, "postcss.config.js");
const postcssCfgDest = path.join(projectDir, "postcss.config.js");
const postcssCfgSrc = path.join(twAssetDir, "postcss.config.cjs");
const postcssCfgDest = path.join(projectDir, "postcss.config.cjs");

const cssSrc = path.join(twAssetDir, "globals.css");
const cssDest = path.join(projectDir, "src/styles/globals.css");
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** @type {import('tailwindcss').Config} */

module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
Expand Down

0 comments on commit 5b97367

Please sign in to comment.