-
Notifications
You must be signed in to change notification settings - Fork 8
/
config-overrides.js
26 lines (22 loc) · 1.19 KB
/
config-overrides.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
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = (config /*, env*/) => {
// console.log(config);
// Heavy bundle! There are options though
config.optimization.minimize = false;
// Monaco ESM start
const options = {
languages: ['css', 'handlebars', 'html', 'javascript', 'typescript',
'json', 'less', 'scss', 'xml'],
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']
};
config.plugins.unshift(new MonacoWebpackPlugin(options));
// Monaco ESM end
return config;
};