init
This commit is contained in:
22
vue.config.js
Normal file
22
vue.config.js
Normal file
@ -0,0 +1,22 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
// module.exports = defineConfig({
|
||||
// transpileDependencies: true
|
||||
// })
|
||||
// defineConfig 这里是vue3 的默认代码
|
||||
const webpack = require("webpack")
|
||||
|
||||
module.exports = defineConfig({
|
||||
// 配置插件参数
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
// 配置 jQuery 插件的参数
|
||||
new webpack.ProvidePlugin({
|
||||
$: 'jquery',
|
||||
jQuery: 'jquery',
|
||||
'window.jQuery': 'jquery',
|
||||
Popper: ['popper.js', 'default']
|
||||
})
|
||||
]
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user