-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
32 lines (27 loc) · 967 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
30
31
32
const { DefinePlugin } = require('webpack');
const path = require('path');
module.exports = {
devServer: {
allowedHosts: 'all',
},
publicPath: '/',
chainWebpack: (config) => {
config.resolve.symlinks(false);
config.module
.rule('html')
.test(/\.html$/)
.use('html-loader')
.loader('html-loader')
.end();
config.resolve.alias
.set('vue$', 'vue/dist/vue.esm-bundler')
.set('@/Models', path.resolve(__dirname, './src/Models/'))
.set('@/components', path.resolve(__dirname, './src/components//'))
.set('@/assets', path.resolve(__dirname, './src/assets/'))
.set('@/router', path.resolve(__dirname, './src/router/'))
.set('@/services', path.resolve(__dirname, './src/services/'))
.set('@/store', path.resolve(__dirname, './src/store/'))
.set('@/Utils', path.resolve(__dirname, './src/Utils/'))
.set('@/Views', path.resolve(__dirname, './src/Views/'));
},
};