-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathvue.config.js
42 lines (41 loc) · 1.1 KB
/
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
39
40
41
42
const path = require('path')
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
outputDir: 'docs',
productionSourceMap: false,
devServer: {
allowedHosts: 'all'
},
configureWebpack: {
resolve: {
alias: {
Components: path.resolve(__dirname, './src/components/'),
Img: path.resolve(__dirname, './src/assets/img/'),
Css: path.resolve(__dirname, './src/assets/css/'),
Fonts: path.resolve(__dirname, './src/assets/fonts/'),
Content: path.resolve(__dirname, './src/content/'),
Code: path.resolve(__dirname, './src/js/code'),
Js: path.resolve(__dirname, './src/js/')
}
},
plugins: [
new MonacoWebpackPlugin({
languages: ['python', 'html', 'javascript', 'typescript', 'yaml', 'xml', 'json', 'markdown']
})
]
},
transpileDependencies: [
'monaco-editor'
],
chainWebpack: config => {
config
.plugin('define')
.tap(args => {
args[0] = {
...args[0],
__INTLIFY_PROD_DEVTOOLS__: false
}
return args
})
}
}