Skip to content
Snippets Groups Projects
Commit 3820163e authored by Will Billingsley's avatar Will Billingsley
Browse files

Added part about setting the version of vue that includes the compiler

parent 55a64618
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,23 @@ Open `index.html` in the browser, and you should find yourself faced with Conway ...@@ -26,7 +26,23 @@ Open `index.html` in the browser, and you should find yourself faced with Conway
## Install loaders for Vue or React ## Install loaders for Vue or React
If you're using Vue, the tutorial last week should already have installed the relevant npm modules: vue and vue-loader. If you're using Vue, install the modules for vue:
```sh
npm install --save-dev vue vue-class-component vue-property-decorator
```
You'll also need to alter `webpack.config.js` to load the version of Vue that includes the template compiler. Change the `resolve` block to:
```js
resolve: {
extensions: ['.ts', '.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js'
}
},
```
If you're using React, though, you'll need to install the modules for react: If you're using React, though, you'll need to install the modules for react:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment