From 0dec449704e4c654b125e3b1b407c486d6c704b6 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sat, 3 Jun 2023 17:08:32 +0600 Subject: [PATCH] fixed tailwind intelliscence --- exampleSite/postcss.config.js | 1 - exampleSite/tailwind.config.js | 4 +++- package.json | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/exampleSite/postcss.config.js b/exampleSite/postcss.config.js index 01c738d..c5cf22a 100644 --- a/exampleSite/postcss.config.js +++ b/exampleSite/postcss.config.js @@ -16,7 +16,6 @@ const purgecss = { /^gc/, /^gs/, /^gi/, - /^gi/, /^gz/, /^desc/, /^zoom/, diff --git a/exampleSite/tailwind.config.js b/exampleSite/tailwind.config.js index 5d57cee..5c25b65 100755 --- a/exampleSite/tailwind.config.js +++ b/exampleSite/tailwind.config.js @@ -1,6 +1,8 @@ const toml = require("toml"); const fs = require("fs"); -const getConfig = fs.readFileSync("config.toml", "utf8"); +const path = require("path"); +const configPath = path.join(__dirname, "config.toml"); +const getConfig = fs.readFileSync(configPath, "utf8"); const theme = JSON.parse(JSON.stringify(toml.parse(getConfig))); let font_base = Number(theme.params.fonts.font_size.base.replace("px", "")); diff --git a/package.json b/package.json index f458c33..02e9afd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.0.4", + "version": "1.0.5", "license": "MIT", "author": "zeon.studio", "scripts": {