其他分享
首页 > 其他分享> > Vue-cli2中使用vue-quill-editor中的ImageResize问题

Vue-cli2中使用vue-quill-editor中的ImageResize问题

作者:互联网

在build/webpack.base.conf.js添加, 然后配置下面的代码:

1、const webpack = require('webpack')

2、在js规则中添加exclude

module: {     rules: [       {         test: /\.js$/,         exclude: /node_modules(?!\/quill-image-drop-module|quill-image-resize-module)/,         loader: 'babel-loader',         include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]       },     ]   } 3、 plugins: [     new webpack.ProvidePlugin({       'window.Quill': 'quill'     })   ],

标签:vue,cli2,resolve,image,module,js,webpack,Vue,quill
来源: https://www.cnblogs.com/zengzengNum1/p/15632863.html