From 3204437db6b2a748f4f989576148944ed77f9522 Mon Sep 17 00:00:00 2001 From: chrissyast <31564153+chrissyast@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:40:46 +0000 Subject: [PATCH] Change config prop for quasar flags (#2003) --- docs/guide/advanced/optimization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/advanced/optimization.md b/docs/guide/advanced/optimization.md index 3b508578e..f5172aa48 100644 --- a/docs/guide/advanced/optimization.md +++ b/docs/guide/advanced/optimization.md @@ -166,7 +166,7 @@ About how to configure for bundler, see the [here](#configure-feature-flags-for- - webpack: use [DefinePlugin](https://webpack.js.org/plugins/define-plugin/) - Rollup: use [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/master/packages/replace) - Vite: configured by default, but can be overwritten using the [`define` option](https://github.com/vitejs/vite/blob/a4133c073e640b17276b2de6e91a6857bdf382e1/src/node/config.ts#L72-L76) -- Quasar CLI: configured by default, but can be overwritten using quasar.conf.js > build > [env option](https://quasar.dev/quasar-cli/handling-process-env#adding-to-process-env) +- Quasar CLI: configured by default, but can be overwritten using quasar.conf.js > build > rawDefine :::tip NOTE The replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.