forked from chenhengjie123/vue-testcase-minder-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
29 lines (29 loc) · 853 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
publicPath: './',
pages: {
index: {
entry: 'examples/main.js', // 走示例项目,需要 npm run lib 后才能使用
// entry: 'packages/VueTestcaseMinderEditor/main.js', // 走主工程项目,可直接 npm run serve 使用。方便调试时查看源码堆栈
template: 'public/index.html',
filename: 'index.html'
}
},
chainWebpack: config => {
config.module
.rule('js')
.include
.add(require('path').join(__dirname, '..', 'packages'))
.end()
.use('babel')
.loader('babel-loader')
.tap(options => {
return options
})
},
lintOnSave: false,
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
devtool: 'source-map'
}
}