From 13b31458da778f05edf936603003ca532b684a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 23 May 2019 13:44:14 +0200 Subject: [PATCH] [DOC] owl: add message when setting mode in 'prod' --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 8693ca8c..97de2aa3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,8 +29,10 @@ Object.defineProperty(__info__, "mode", { if (QWeb.dev) { const url = `https://github.com/odoo/owl/blob/master/doc/tooling.md#development-mode`; console.warn( - `Owl is running in dev mode. This is not suitable for production use. See ${url} for more information.` + `Owl is running in 'dev' mode. This is not suitable for production use. See ${url} for more information.` ); + } else { + console.log(`Owl is now running in 'prod' mode.`) } } });