Skip to content

Commit c179121

Browse files
authored
Mention vue.config.js runtimeCompiler option
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.
1 parent 8736949 commit c179121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/v2/guide/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ new Vue({
131131

132132
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.
133133

134-
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:
134+
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):
135135

136136
#### Webpack
137137

0 commit comments

Comments
 (0)