Skip to content
Permalink
Browse files
fix: fix compatibility with webpack 3
According to the documentation
https://vue-loader.vuejs.org/guide/extract-css.html#webpack-3
and some private feedbacks, there are still many users use
vue-loader v15 along with webpack 3.
  • Loading branch information
sodatea committed Dec 16, 2019
1 parent 151995e commit 745d0542ef8ae6f6f740dfe2aeea1ba208ea293a
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/plugin.js
  2. +1 −1 package.json
@@ -1,7 +1,7 @@
const webpack = require('webpack')
let VueLoaderPlugin = null

if (webpack.version[0] > 4) {
if (webpack.version && webpack.version[0] > 4) {
// webpack5 and upper
VueLoaderPlugin = require('./plugin-webpack5')
} else {
@@ -34,7 +34,7 @@
},
"peerDependencies": {
"css-loader": "*",
"webpack": "^4.1.0 || ^5.0.0-0"
"webpack": "^3.0.0 || ^4.1.0 || ^5.0.0-0"
},
"peerDependenciesMeta": {
"cache-loader": {

0 comments on commit 745d054

Please sign in to comment.