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.
Closes #1376
Proposed Changes
vite build
postcss.config.js
to the propertailwind.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.
To resolve this issue, we need to utilize appropriate file paths within postcss.config.js to correctly reference the location of tailwind.config.js.