diff options
| author | sharils <3063067+sharils@users.noreply.github.com> | 2021-11-02 15:04:51 +0800 |
|---|---|---|
| committer | sharils <3063067+sharils@users.noreply.github.com> | 2021-11-02 15:05:10 +0800 |
| commit | bb25c5a6b78e76a6d6d829276dda6437a9d3fb1c (patch) | |
| tree | 7b5f00b349bcd4ca5d996fe2b0d72adf8f140e27 /README.md | |
| parent | a4ef49a2e89ff0529bf3dac7a9f6a28d0acb1687 (diff) | |
| download | vim-prettier-bb25c5a6b78e76a6d6d829276dda6437a9d3fb1c.tar.xz | |
Minimise node_modules size
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9,7 +9,7 @@ settings. ```vim Plug 'prettier/vim-prettier', { - \ 'do': 'yarn install --frozen-lockfile', + \ 'do': 'yarn install --frozen-lockfile --production', \ 'branch': 'release/0.x' \ } ``` @@ -42,7 +42,7 @@ yarn|npm installed globally. ```vim " post install (yarn install | npm install) then load plugin only for editing supported files Plug 'prettier/vim-prettier', { - \ 'do': 'yarn install --frozen-lockfile', + \ 'do': 'yarn install --frozen-lockfile --production', \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml', 'html'] } ``` @@ -50,7 +50,7 @@ or simply enable for all formats by: ```vim " post install (yarn install | npm install) then load plugin only for editing supported files -Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile' } +Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile --production' } ``` For those using [vim-pathogen](https://github.com/tpope/vim-pathogen), you can run the following in a terminal: |
