forked from zfile-dev/zfile-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
23 lines (22 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
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = {
configureWebpack: {
output: {
filename: 'js/app.js',
chunkFilename:'js/[name].min.js'
},
},
productionSourceMap: false,
devServer: {
disableHostCheck: true,
},
chainWebpack: config => {
config.plugins.delete('prefetch')
config.plugin('monaco').use(MonacoWebpackPlugin, [
{
languages: ['java', 'php'],
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']
}
])
},
};