Skip to content

Commit bb25c5a

Browse files
committed
Minimise node_modules size
1 parent a4ef49a commit bb25c5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ settings.
99

1010
```vim
1111
Plug 'prettier/vim-prettier', {
12-
\ 'do': 'yarn install --frozen-lockfile',
12+
\ 'do': 'yarn install --frozen-lockfile --production',
1313
\ 'branch': 'release/0.x'
1414
\ }
1515
```
@@ -42,15 +42,15 @@ yarn|npm installed globally.
4242
```vim
4343
" post install (yarn install | npm install) then load plugin only for editing supported files
4444
Plug 'prettier/vim-prettier', {
45-
\ 'do': 'yarn install --frozen-lockfile',
45+
\ 'do': 'yarn install --frozen-lockfile --production',
4646
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] }
4747
```
4848

4949
or simply enable for all formats by:
5050

5151
```vim
5252
" post install (yarn install | npm install) then load plugin only for editing supported files
53-
Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile' }
53+
Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile --production' }
5454
```
5555

5656
For those using [vim-pathogen](https://github.com/tpope/vim-pathogen), you can run the following in a terminal:

0 commit comments

Comments
 (0)