From bb25c5a6b78e76a6d6d829276dda6437a9d3fb1c Mon Sep 17 00:00:00 2001 From: sharils <3063067+sharils@users.noreply.github.com> Date: Tue, 2 Nov 2021 15:04:51 +0800 Subject: Minimise node_modules size --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 3ed45da..68a0fc0 100644 --- a/README.md +++ b/README.md @@ -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: -- cgit v1.3