From e59a63565d8a9e3bfa231aa2fc8784af220eca7f Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 10 Mar 2017 11:59:38 +1300 Subject: [PATCH] Documentation and linting updates --- client/src/sprites/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/sprites/README.md b/client/src/sprites/README.md index 562b17845..49180b9cd 100644 --- a/client/src/sprites/README.md +++ b/client/src/sprites/README.md @@ -5,9 +5,9 @@ but there's no way to add new sprites to the system. *Original Instructions (no longer valid)* We use sprites to handle various icons and images throughout the CMS. These are automatically generated -by running `npm run build` and can be found at `/admin/client/src/sprites/dist`. To add new +by running `yarn run build` and can be found at `/admin/client/src/sprites/dist`. To add new images to the sprites, simply add the image to the folder matching the image's size in -`/admin/client/sprites` then run `npm run sprites` to generate the sprite containing your image. +`/admin/client/sprites` then run `yarn run build` to generate the sprite containing your image. Along with the new sprite containing your image, there will also be a new variable in `/admin/client/styles/legacy/_sprites.scss` which you can use in your .scss file by first extending the class matching the sprite (eg `@extend .icon-sprites-32x32;`), and then including your image using the variable