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
30
31
32
33
34
| module.exports = {
| productionSourceMap: false,
| lintOnSave: false,
| devServer: {
| port: 8080,
| overlay: {
| warning: false,
| errors: false
| }
| },
| css: {
| sourceMap: true
| },
| // 强制转译特定包
| transpileDependencies: [
| 'vue-router',
| 'vue-draggable-next'
| ],
| chainWebpack: (config) => {
| config.plugins.delete('prefetch');
|
| config.plugin('html').tap((args) => {
| args[0].title = 'WMS';
| return args;
| });
|
| // 处理mjs文件
| config.module
| .rule('mjs')
| .test(/\.mjs$/)
| .type('javascript/auto')
| .include.add(/node_modules/);
| }
| };
|
|