This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
70 lines (68 loc) · 3.06 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
module.exports = {
css: {
loaderOptions: {
// pass options to sass-loader
sass: {
// @/ is an alias to src/
// so this assumes you have a file named `src/variables.scss`
data: `
@import "~@aeternity/aepp-components-3/src/styles/globals/mixins";
@import "~@aeternity/aepp-components-3/src/styles/globals/functions";
@import "~@aeternity/aepp-components-3/src/styles/placeholders/typography";
@import "~@aeternity/aepp-components-3/src/styles/variables/animations";
@import "~@aeternity/aepp-components-3/src/styles/variables/colors";
@import "~@aeternity/aepp-components-3/src/styles/variables/paths";
@import "~@aeternity/aepp-components-3/src/styles/variables/typography";
`
}
}
},
configureWebpack: {
plugins: [
new MonacoWebpackPlugin({
/**
* languages (string[]) - include only a subset of the languages supported.
*
* default value: [
* 'apex', 'azcli', 'bat', 'clojure', 'coffee', 'cpp',
* 'csharp', 'csp', 'css', 'dockerfile', 'fsharp', 'go',
* 'handlebars', 'html', 'ini', 'java', 'javascript',
* 'json', 'less', 'lua', 'markdown', 'msdax', 'mysql',
* 'objective', 'perl', 'pgsql', 'php', 'postiats',
* 'powerquery', 'powershell', 'pug', 'python', 'r', 'razor',
* 'redis', 'redshift', 'ruby', 'rust', 'sb', 'scheme', 'scss',
* 'shell', 'solidity', 'sql', 'st', 'swift', 'typescript', 'vb',
* 'xml', 'yaml'].
*
* Some languages share the same web worker. If one of the
* following languages is included, you must also include the
* language responsible for instantiating their shared worker:
*
* Language Instantiator
* javascript > typescript
* handlebars > html
* scss, less > css
*/
languages: ['typescript', 'json'],
/**
* features (string[]) - include only a subset of the editor features.
*
* default value: ['accessibilityHelp', 'bracketMatching', 'caretOperations',
* 'clipboard', 'codeAction', 'codelens', 'colorDetector', 'comment',
* 'contextmenu', 'coreCommands', 'cursorUndo', 'dnd', 'find', 'folding', 'fontZoom',
* 'format', 'goToDefinitionCommands', 'goToDefinitionMouse', 'gotoError',
* 'gotoLine', 'hover', 'inPlaceReplace', 'inspectTokens', 'iPadShowKeyboard',
* 'linesOperations', 'links', 'multicursor', 'parameterHints', 'quickCommand',
* 'quickOutline', 'referenceSearch', 'rename', 'smartSelect', 'snippets',
* 'suggest', 'toggleHighContrast', 'toggleTabFocusMode', 'transpose', 'wordHighlighter',
* 'wordOperations', 'wordPartOperations'].
*
* excluded features: It is also possible to exclude certain default features prefixing them
* with an exclamation mark '!'.
*/
features: ['coreCommands']
})
]
}
}