Closed olivierpascal closed 8 months ago
I would like to build stylex in production mode with an arbitrary mode (ie. vite build --mode staging).
vite build --mode staging
Today it is not possible:
https://github.com/HorusGoul/vite-plugin-stylex/blob/ce2e330df0f5e2cadf63f5a9d145274a5ee48154/packages/vite-plugin-stylex/src/index.mts#L138-L142
Thanks for the report! This should check that we're running Vite with the build command instead.
That did it. Thanks!
I would like to build stylex in production mode with an arbitrary mode (ie.
vite build --mode staging
).Today it is not possible:
https://github.com/HorusGoul/vite-plugin-stylex/blob/ce2e330df0f5e2cadf63f5a9d145274a5ee48154/packages/vite-plugin-stylex/src/index.mts#L138-L142