forked from pengxiaotian/datav-vue
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvue.config.js
More file actions
30 lines (29 loc) · 743 Bytes
/
vue.config.js
File metadata and controls
30 lines (29 loc) · 743 Bytes
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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
publicPath: '/',
devServer: {
host: '0.0.0.0',
port: 9090,
},
pages: {
index: {
entry: './src/main.ts',
title: 'DataV',
},
},
configureWebpack: {
plugins: [
new MonacoWebpackPlugin({
languages: ['plaintext', 'javascript', 'json', 'sql'],
filename: '[name].worker.[contenthash].js',
}),
],
},
chainWebpack: config => {
// https://webpack.js.org/configuration/devtool/#development
config
.when(process.env.NODE_ENV === 'development',
config => config.devtool('eval-cheap-source-map'))
},
}