perf: reduce install size using yarn --production (#1066)
This commit is contained in:
parent
380dbbf341
commit
2fc6897ee3
|
@ -1,5 +1,11 @@
|
||||||
# Contributing to Pinafore
|
# Contributing to Pinafore
|
||||||
|
|
||||||
|
## Installing
|
||||||
|
|
||||||
|
To install with dev dependencies, run:
|
||||||
|
|
||||||
|
yarn
|
||||||
|
|
||||||
## Dev server
|
## Dev server
|
||||||
|
|
||||||
To run a dev server with hot reloading:
|
To run a dev server with hot reloading:
|
||||||
|
|
|
@ -12,7 +12,7 @@ RUN apk add --update --no-cache --virtual build-dependencies git python build-ba
|
||||||
# Install yarn
|
# Install yarn
|
||||||
&& npm i yarn -g \
|
&& npm i yarn -g \
|
||||||
# Install Pinafore
|
# Install Pinafore
|
||||||
&& yarn --pure-lockfile \
|
&& yarn --production --pure-lockfile \
|
||||||
&& yarn build \
|
&& yarn build \
|
||||||
&& rm -rf ./src \
|
&& rm -rf ./src \
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
|
|
@ -56,7 +56,7 @@ Pinafore requires [Node.js](https://nodejs.org/en/) v8+ and [Yarn](https://yarnp
|
||||||
|
|
||||||
To build Pinafore for production, first install dependencies:
|
To build Pinafore for production, first install dependencies:
|
||||||
|
|
||||||
yarn --pure-lockfile
|
yarn --production --pure-lockfile
|
||||||
|
|
||||||
Then build:
|
Then build:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue