From c1791210065814b841ae2e63ac734436fe9da56f Mon Sep 17 00:00:00 2001 From: Johannes Neumeier Date: Mon, 28 Feb 2022 11:23:30 +0200 Subject: [PATCH] Mention vue.config.js runtimeCompiler option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using vue cli to set up a project setting this flag in the `vue.config.js` config file seems to be the way to include the runtimeCompiler — this was missing from the docs. --- src/v2/guide/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/installation.md b/src/v2/guide/installation.md index 92e0ec118a..85ee089cdd 100644 --- a/src/v2/guide/installation.md +++ b/src/v2/guide/installation.md @@ -131,7 +131,7 @@ new Vue({ When using `vue-loader` or `vueify`, templates inside `*.vue` files are pre-compiled into JavaScript at build time. You don't really need the compiler in the final bundle, and can therefore use the runtime-only build. -Since the runtime-only builds are roughly 30% lighter-weight than their full-build counterparts, you should use it whenever you can. If you still wish to use the full build instead, you need to configure an alias in your bundler: +Since the runtime-only builds are roughly 30% lighter-weight than their full-build counterparts, you should use it whenever you can. If you still wish to use the full build instead, you need to configure an alias in your bundler or [set the appropriate config flag](https://cli.vuejs.org/config/#runtimecompiler): #### Webpack