-
Notifications
You must be signed in to change notification settings - Fork 8
/
vue.config.js
38 lines (36 loc) · 953 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
33
34
35
36
37
38
const path = require('path');
const RoutePlugin = require('./relax-plus/config/routePlugin');
module.exports = {
pages: {
index: {
entry: 'examples/main.js',
template: 'public/index.html',
filename: 'index.html',
},
},
publicPath: './',
chainWebpack: (config) => {
config.resolve.alias
.set('RelaxPlus', path.resolve(__dirname, 'relax-plus'))
.set('@', path.resolve(__dirname, 'examples'));
config.module
.rule('md')
.test(/\.md/)
.use('vue-loader-v16')
.loader('vue-loader-v16')
.options({
compiler: require('@vue/compiler-sfc'),
})
.end()
.use(path.resolve('relax-plus/config/md-loader/index.js'))
.loader(path.resolve('relax-plus/config/md-loader/index.js'));
},
configureWebpack: {
devServer: {
watchOptions: {
ignored: /examples\/router\/data.json/,
},
},
plugins: [new RoutePlugin()],
},
};