13 Star 96 Fork 32

EMQX / MQTTX

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 2.35 KB
一键复制 编辑 原始数据 按行查看 历史
HelloWorld 提交于 2021-07-20 21:21 . chore(deps): add sqlite & typeorm
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
productionSourceMap: false,
devServer: {
hot: true,
host: '0.0.0.0',
disableHostCheck: true,
},
configureWebpack: {
plugins: [
new MonacoWebpackPlugin({
output: 'static/',
languages: ['json', 'javascript'],
features: [
'!accessibilityHelp',
'!bracketMatching',
'caretOperations',
'clipboard',
'codeAction',
'codelens',
'colorDetector',
'!comment',
'contextmenu',
'coreCommands',
'cursorUndo',
'!dnd',
'!find',
'!folding',
'!fontZoom',
'!format',
'!gotoError',
'!gotoLine',
'!gotoSymbol',
'!hover',
'!iPadShowKeyboard',
'!inPlaceReplace',
'inspectTokens',
'linesOperations',
'!links',
'!multicursor',
'!parameterHints',
'quickCommand',
'quickOutline',
'!referenceSearch',
'!rename',
'smartSelect',
'snippets',
'suggest',
'!toggleHighContrast',
'toggleTabFocusMode',
'transpose',
'wordHighlighter',
'wordOperations',
'wordPartOperations',
],
}),
],
},
pluginOptions: {
electronBuilder: {
nodeIntegration: true,
// Prevent bundling of certain imported packages and instead retrieve these external dependencies at runtime.
// In order to connect to websocket.
externals: ['mqtt', 'vm2', 'log4js', 'typeorm'],
builderOptions: {
productName: 'MQTTX',
win: {
artifactName: 'MQTTX.Setup.${version}.${ext}',
icon: './public/icons/app.ico',
},
mac: {
icon: './public/icons/mac/Icon.icns',
target: [
{
target: 'dmg',
arch: 'universal',
},
{
target: 'pkg',
arch: 'universal',
},
{
target: 'zip',
arch: 'universal',
},
],
},
linux: {
icon: './public/icons/app.png',
target: ['AppImage', 'deb', 'rpm', 'snap'],
},
},
},
},
}
TypeScript
1
https://gitee.com/emqx/MQTTX.git
git@gitee.com:emqx/MQTTX.git
emqx
MQTTX
MQTTX
master

搜索帮助