Skip to content

Commit

Permalink
fix tailwind / css issues
Browse files Browse the repository at this point in the history
  • Loading branch information
asanehisa committed Feb 29, 2024
1 parent 2eee8e8 commit be3f42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/pages/src/vite-plugin/modules/plugin.ts
Expand Up @@ -8,9 +8,6 @@ import { processEnvVariables } from "../../util/processEnvVariables.js";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import pc from "picocolors";
import { addResponseHeadersToConfigYaml } from "../../util/editConfigYaml.js";
// https://github.com/dolanmiu/vite-plugin-scope-tailwind/issues/5
// @ts-expect-error due to type any
import scopeTailwind from "vite-plugin-scope-tailwind";
import SourceFileParser, {
createTsMorphProject,
} from "../../common/src/parsers/sourceFileParser.js";
Expand Down Expand Up @@ -134,7 +131,6 @@ export const buildModules = async (
define: processEnvVariables(envVarConfig.envVarPrefix),
plugins: [
addWrappedCodePlugin(fileInfo.path, moduleName),
scopeTailwind({ react: true }),
nodePolyfills({
globals: {
Buffer: "build",
Expand Down Expand Up @@ -243,12 +239,12 @@ const getPostCssConfigFilepath = (
subfolders.modules,
`${filename}/postcss.config`
);
let filePaths = glob.sync(filePath + "**/*.{cjs,js,ts,mjs}");
let filePaths = glob.sync(filePath + ".{js,cjs,ts,mjs}");
if (filePaths.length == 1) {
return filePaths[0];
}

filePaths = glob.sync("postcss.config" + "**/*.{cjs,js,ts,mjs}");
filePaths = glob.sync("postcss.config" + ".{js,cjs,ts,mjs}");
if (filePaths.length == 1) {
return filePaths[0];
}
Expand Down
Binary file modified packages/pages/yext-pages-1.0.0.tgz
Binary file not shown.

0 comments on commit be3f42b

Please sign in to comment.