Skip to content

Commit 97d7a5e

Browse files
author
elevatebart
committed
docs: no more need for template compilation
1 parent c47b323 commit 97d7a5e

File tree

1 file changed

+0
-61
lines changed

1 file changed

+0
-61
lines changed

README.md

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -57,67 +57,6 @@ To install the version for vue 2, use the following:
5757
npm install --save vue-live@1
5858
```
5959

60-
## Enabling template compilation
61-
62-
To compile templates in the browser, you need the compiler to be in your JS bundle.
63-
64-
If you do not, you might see errors about using the runtime version of Vue.
65-
66-
To bundle this, there is a simple solution: Add an alias in `webpack.config.js`.
67-
68-
```js
69-
module.exports = {
70-
resolve: {
71-
alias: {
72-
// this enables loading the "full" version of vue
73-
// instead of only loading the vue runtime
74-
vue$: "vue/dist/vue.esm-browser.js",
75-
},
76-
},
77-
};
78-
```
79-
80-
In a [Vue CLI](https://cli.vuejs.org/) project use [vue.config.js](https://cli.vuejs.org/guide/webpack.html).
81-
82-
```js
83-
module.exports = {
84-
configureWebpack: {
85-
resolve: {
86-
alias: {
87-
vue$: "vue/dist/vue.esm.js",
88-
},
89-
},
90-
},
91-
};
92-
```
93-
94-
in [nuxt.config.js](https://nuxtjs.org/faq/extend-webpack/)
95-
96-
```js
97-
export default {
98-
build: {
99-
extend(config, { isDev, isClient }) {
100-
// ..
101-
config.resolve.alias.vue$ = "vue/dist/vue.esm-browser.js";
102-
},
103-
},
104-
};
105-
```
106-
107-
and finally in [gridsome.config.js](https://gridsome.org/docs/config/#configurewebpack)
108-
109-
```js
110-
module.exports = {
111-
configureWebpack: {
112-
resolve: {
113-
alias: {
114-
vue$: "vue/dist/vue.esm-browser.js",
115-
},
116-
},
117-
},
118-
};
119-
```
120-
12160
## Events
12261

12362
### `@error`

0 commit comments

Comments
 (0)