1 Star 0 Fork 692

wangscript1 / datav-vue

forked from pengxiaotian / datav-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
pengxiaotian 提交于 2021-03-23 18:54 . Update vue.config.js
// 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'))
},
}
TypeScript
1
https://gitee.com/kingsmart/datav-vue.git
git@gitee.com:kingsmart/datav-vue.git
kingsmart
datav-vue
datav-vue
main

搜索帮助