From 3820163ec36b28be74d99bc5112e735b6e3acd83 Mon Sep 17 00:00:00 2001 From: William Billingsley <wbilling@une.edu.au> Date: Tue, 7 Aug 2018 13:56:13 +1000 Subject: [PATCH] Added part about setting the version of vue that includes the compiler --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index da03190..305d351 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: -- GitLab