You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that there is an issue where the stylings of patterns displayed on our landing page are not being applied correctly. Upon investigation, it seems that this issue has persisted since the introduction of the Vite executors in the ui-patterns package.
It seems also to be related to tailwind. See this warning:
> nx run ui-patterns:build
vite v5.0.13 building for production...
transforming (8) src/patterns/my-pattern-a/MyPatternA.tsx
warn - The `content` option in your Tailwind CSS configuration is missing or empty.
warn - Configure your content sources or your generated CSS will be missing styles.
warn - https://tailwindcss.com/docs/content-configuration
✓ 27 modules transformed.
[vite:dts] Start generate declaration files...
computing gzip size (2)...[vite:dts] Declaration files built in 367ms.
dist/style.css 4.50 kB │ gzip: 1.35 kB
dist/html.js 16.80 kB │ gzip: 3.44 kB
dist/index.js 1,080.88 kB │ gzip: 786.68 kB
✓ built in 772ms
Acceptance Criteria
A solution is implemented to resolve the styling issue and ensure that patterns are displayed correctly on the landing page.
Additional Notes
The text was updated successfully, but these errors were encountered:
Closes#1376
## Proposed Changes
- Move all dependencies to prevent version mismatches
- Activate caching for `vite build`
- Point `postcss.config.js` to the proper `tailwind.config.js`
## Context
The issue arose from the inability of postcss.config.js to locate any
tailwind.config.js file for processing. This was due to its expectation
for tailwind.config.js to be located directly adjacent to it. Although
the tailwind configuration file was correctly positioned, the
introduction of Vite executors caused a change in the execution context,
resulting in it being executed from our root directory where
tailwind.config.js was not present.
```
// before introduction of vite executors
$ packages/ui-patterns > vite build // context -> packages/ui-patterns
// after introduction of vite executors
$ / > nx vite:build ui-patterns // context -> /
```
To resolve this issue, we need to utilize appropriate file paths within
postcss.config.js to correctly reference the location of
tailwind.config.js.
Context
It seems that there is an issue where the stylings of patterns displayed on our landing page are not being applied correctly. Upon investigation, it seems that this issue has persisted since the introduction of the Vite executors in the ui-patterns package.
It seems also to be related to tailwind. See this warning:
Acceptance Criteria
Additional Notes
The text was updated successfully, but these errors were encountered: