mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-15 07:00:00 +08:00
27 lines
589 B
JavaScript
27 lines
589 B
JavaScript
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
outputDir:'examples/dist',
|
|
publicPath:"/vue-office/examples/dist",
|
|
pages: {
|
|
index: {
|
|
entry: 'examples/main.js',
|
|
template: 'public/index.html',
|
|
filename: 'index.html'
|
|
}
|
|
},
|
|
// 扩展 webpack 配置,使 packages 加入编译
|
|
chainWebpack: config => {
|
|
config.module
|
|
.rule('js')
|
|
.include
|
|
.add('/packages')
|
|
.end()
|
|
.use('babel')
|
|
.loader('babel-loader')
|
|
},
|
|
configureWebpack: {
|
|
}
|
|
|
|
})
|