| 1 |
const path = require('path') |
= |
1 |
const path = require('path') |
| 2 |
|
|
2 |
|
| 3 |
module.exports = { |
|
3 |
module.exports = { |
| 4 |
transpileDependencies: [ |
|
4 |
transpileDependencies: [ |
| 5 |
/\bbootstrap-vue\b/, |
|
5 |
/\bbootstrap-vue\b/, |
| 6 |
/\bvuejs-datepicker\b/, |
|
6 |
/\bvuejs-datepicker\b/, |
| 7 |
/\bvue-echarts\b/, |
|
7 |
/\bvue-echarts\b/, |
| 8 |
/\bresize-detector\b/, |
|
8 |
/\bresize-detector\b/, |
| 9 |
/\bvue-c3\b/, |
|
9 |
/\bvue-c3\b/, |
| 10 |
/\bvue-masonry\b/, |
|
10 |
/\bvue-masonry\b/, |
| 11 |
/\bvue-cropper\b/, |
|
11 |
/\bvue-cropper\b/, |
| 12 |
/\bvuedraggable\b/ |
<> |
12 |
/\bvuedraggable\b/, |
| |
|
|
13 |
/\bdropzone\b/, |
| |
|
|
14 |
/\bmarked\b/, |
| |
|
|
15 |
/\bvue-plyr\b/, |
| |
|
|
16 |
/\bswiper\b/, |
| |
|
|
17 |
/\bdom7\b/ |
| 13 |
], |
= |
18 |
], |
| 14 |
chainWebpack: config => { |
|
19 |
chainWebpack: config => { |
| 15 |
|
|
20 |
|
| 16 |
config.resolve.alias |
|
21 |
config.resolve.alias |
| 17 |
.set('node_modules', path.join(__dirname, './node_modules')) |
|
22 |
.set('node_modules', path.join(__dirname, './node_modules')) |
| 18 |
|
|
23 |
|
| 19 |
|
|
24 |
|
| 20 |
config.plugins |
|
25 |
config.plugins |
| 21 |
.delete('prefetch') |
|
26 |
.delete('prefetch') |
| 22 |
|
|
27 |
|
| 23 |
|
|
28 |
|
| 24 |
config.module.rule('vue') |
|
29 |
config.module.rule('vue') |
| 25 |
.use('vue-loader') |
|
30 |
.use('vue-loader') |
| 26 |
.loader('vue-loader') |
|
31 |
.loader('vue-loader') |
| 27 |
.tap(options => { |
|
32 |
.tap(options => { |
| 28 |
options.compilerOptions.whitespace = 'preserve' |
|
33 |
options.compilerOptions.whitespace = 'preserve' |
| 29 |
return options |
|
34 |
return options |
| 30 |
}) |
|
35 |
}) |
| 31 |
} |
|
36 |
} |
| 32 |
} |
|
37 |
} |