vue-cli3.X 配置webpack plugins
vue-cli3.X 配置webpackvue2.X 版本webpack配置引入第三方插件var webpack = require('webpack');module.exports = {plugins: [new webpack.ProvidePlugin({'window.Quill': 'quill/dist/quill.js',...
·
vue-cli3.X 配置webpack
vue2.X 版本webpack配置引入第三方插件
var webpack = require('webpack');
module.exports = {
plugins: [
new webpack.ProvidePlugin({
'window.Quill': 'quill/dist/quill.js',
'Quill': 'quill/dist/quill.js'
}),
]
}
vue-cli3.X 版本webpack配置引入第三方插
const webpack = require('webpack')
module.exports = {
chainWebpack: config => {
config.plugin('provide').use(webpack.ProvidePlugin, [{
'window.Quill': 'quill/dist/quill.js',
'Quill': 'quill/dist/quill.js'
}]);
}
}
更多推荐
已为社区贡献50条内容
所有评论(0)