From 75d103c7ebed0a345e05b76212825d4967b3f303 Mon Sep 17 00:00:00 2001 From: Liudmyla Iefremova Date: Sat, 5 May 2018 19:28:08 +0300 Subject: [PATCH] Edit webpack.config.js Have to change webpack.config.js according the official docs: https://vue-loader.vuejs.org/migrating.html#a-plugin-is-now-required --- webpack.config.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index f82992dd..99583120 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ var path = require('path') var webpack = require('webpack') +const VueLoaderPlugin = require('vue-loader/lib/plugin') module.exports = { entry: './src/index.ts', @@ -25,6 +26,21 @@ module.exports = { // other vue-loader options go here } }, + // this will apply to both plain `.js` files + // AND `