|
9 | 9 | // disable keymaps |
10 | 10 | "disable_keymap_actions": false, |
11 | 11 | // ignore folders that match following regular expressions |
12 | | - "exclude_folders": ["node\\_modules", "bower\\_components/.*/bower\\_components"], |
| 12 | + "exclude_folders": ["node\\_modules\\/.*\\/node_modules", "bower\\_components/.*/bower\\_components"], |
13 | 13 | // logs scope evaluation to console to debug configuration |
14 | 14 | "log": false, |
15 | 15 | // LIST OF TRIGGERS FOR AUTO COMPLETION |
|
40 | 40 | "replace_on_insert": [ |
41 | 41 | ["\\.js$", ""], // after insertion, remove .js from path |
42 | 42 | ["([^.])\\/index$", "\\1"], // nodejs will load index.js by default => also remove index |
43 | | - ["^(\\/.+)?\\/bower_components\\/", ""] // remove bower_components, since our build tool resolves this path automatically |
| 43 | + // remove path to module-folder, since our build tool resolves this path automatically |
| 44 | + ["^(\\/.+)?\\/(bower_components|node_modules)\\/", ""] |
44 | 45 | ] |
45 | 46 | }, |
46 | 47 | { |
|
55 | 56 | "replace_on_insert": [ |
56 | 57 | ["\\.js$", ""], |
57 | 58 | ["([^.])\\/index$", "\\1"], |
58 | | - ["^\\/bower_components\\/", ""] |
| 59 | + ["^(\\/.+)?\\/(bower_components|node_modules)\\/", ""] |
59 | 60 | ] |
60 | 61 | }, |
61 | 62 | { |
|
81 | 82 | "extensions": ["js", "ts"], |
82 | 83 | "replace_on_insert": [ |
83 | 84 | ["(\\.js|\\.ts)$", ""], |
84 | | - ["([^.])\\/index$", "\\1"] |
| 85 | + ["([^.])\\/index$", "\\1"], |
| 86 | + ["^(\\/.+)?\\/(bower_components|node_modules)\\/", ""] |
85 | 87 | ] |
86 | 88 | }, |
87 | 89 | { |
|
118 | 120 | "extensions": ["css", "scss", "less"], |
119 | 121 | "replace_on_insert": [ |
120 | 122 | ["\\.(css|scss)$", ""], |
121 | | - ["^\\/bower_components\\/", ""] |
| 123 | + ["^(\\/.+)?\\/(bower_components|node_modules)\\/", ""] |
122 | 124 | ] |
123 | 125 | }, |
124 | 126 | { |
|
132 | 134 | "extensions": ["png", "gif", "jpeg", "jpg", "woff", "ttf", "svg", "otf"], |
133 | 135 | "replace_on_insert": [ |
134 | 136 | ["\\.(css|scss)$", ""], |
135 | | - ["^\\/bower_components\\/", ""] |
| 137 | + ["^(\\/.+)?\\/(bower_components|node_modules)\\/", ""] |
136 | 138 | ] |
137 | 139 | }, |
138 | 140 | /* |
|
0 commit comments