diff --git a/build/webpack.config.js b/build/webpack.config.js index a4c0d93..fec2037 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -1,6 +1,6 @@ const path = require('path'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); -const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const { VueLoaderPlugin } = require('vue-loader') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; module.exports = { diff --git a/build/webpack.ssr.config.js b/build/webpack.ssr.config.js index c8bc068..c6286a8 100644 --- a/build/webpack.ssr.config.js +++ b/build/webpack.ssr.config.js @@ -2,7 +2,7 @@ const path = require('path'); const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin'); -const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const { VueLoaderPlugin } = require('vue-loader') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; module.exports = { diff --git a/example/build/webpack.dev.conf.js b/example/build/webpack.dev.conf.js index 56c715b..82f0f4c 100644 --- a/example/build/webpack.dev.conf.js +++ b/example/build/webpack.dev.conf.js @@ -1,5 +1,5 @@ const path = require('path'); -const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const { VueLoaderPlugin } = require('vue-loader') const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = {