diff --git a/README.md b/README.md index da03190dd160173bf1dafa8c9b193abf07b5b0c6..305d351a3370a387e57536b440e9f6b920f87f6b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,23 @@ Open `index.html` in the browser, and you should find yourself faced with Conway ## 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: