Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 92d23c7

Browse files
committed
Fix vue-loader error
1 parent 5d3b569 commit 92d23c7

File tree

3 files changed

+121
-28
lines changed

3 files changed

+121
-28
lines changed

build/webpack.base.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const path = require('path')
33
const utils = require('./utils')
44
const config = require('../config')
5+
const { VueLoaderPlugin } = require("vue-loader");
56
const vueLoaderConfig = require('./vue-loader.conf')
67

78
function resolve (dir) {
@@ -88,5 +89,6 @@ module.exports = {
8889
net: 'empty',
8990
tls: 'empty',
9091
child_process: 'empty'
91-
}
92+
},
93+
plugins: [new VueLoaderPlugin()]
9294
}

package-lock.json

Lines changed: 117 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"shelljs": "^0.7.6",
6969
"uglifyjs-webpack-plugin": "^1.1.1",
7070
"url-loader": "^0.5.8",
71-
"vue-loader": "^13.3.0",
71+
"vue-loader": "^15.4.2",
7272
"vue-style-loader": "^3.0.1",
7373
"vue-template-compiler": "^2.5.2",
7474
"webpack": "^4.31.0",

0 commit comments

Comments
 (0)