For the issue I had above in my previous post, just for "grins and giggles", I tried adding my custom z-index to the main tailwindcss config. Shockingly, it worked and presented me with an error which pointed to another unrecognized custom spec such as bg-whiten. :) So, I meed to point vite to the appropriate config file for the backend css.
According to the vite documentation I should be able to specify a configuration file on the command-line. For example: vite --config vite.backend.config.js, but when I do this I get the following error:
failed to load config from D:\laragon\www\laravel-ads-v2\vite.backend.config.js
error when starting dev server:
Error: Dynamic require of "file:///D:/laragon/www/laravel-ads-v2/node_modules/tailwindcss/lib/index.js" is not supported
at file:///D:/laragon/www/laravel-ads-v2/vite.backend.config.js.timestamp-1692749258548-4a278fbb0af6f.mjs:6:9
at file:///D:/laragon/www/laravel-ads-v2/vite.backend.config.js.timestamp-1692749258548-4a278fbb0af6f.mjs:26:9
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadConfigFromBundledFile (file:///D:/laragon/www/laravel-ads-v2/node_modules/vite/dist/node/chunks/dep-df561101.js:66235:21)
at async loadConfigFromFile (file:///D:/laragon/www/laravel-ads-v2/node_modules/vite/dist/node/chunks/dep-df561101.js:66086:28)
at async resolveConfig (file:///D:/laragon/www/laravel-ads-v2/node_modules/vite/dist/node/chunks/dep-df561101.js:65682:28)
at async _createServer (file:///D:/laragon/www/laravel-ads-v2/node_modules/vite/dist/node/chunks/dep-df561101.js:64959:20)
at async CAC.<anonymous> (file:///D:/laragon/www/laravel-ads-v2/node_modules/vite/dist/node/cli.js:743:24)
I also tried using --debug , but that doesn't seem to work.