From 1fd6b45ea6958d6292d1caf6525d5534e02e36c6 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Sat, 31 Oct 2020 17:08:46 +0100 Subject: [PATCH] docs(configuration): entry for preventing filetypes from being copied (#1264) * docs(configuration): entry for preventing filetypes from being copied #1261 * Update packages/docs/src/docs/pattern-managing-assets.md * Update packages/docs/src/docs/pattern-managing-assets.md Co-authored-by: Maximilian Franzke Co-authored-by: Josef Bredreck --- packages/docs/src/docs/pattern-managing-assets.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/docs/src/docs/pattern-managing-assets.md b/packages/docs/src/docs/pattern-managing-assets.md index 2f99b5879..5e1e910a6 100644 --- a/packages/docs/src/docs/pattern-managing-assets.md +++ b/packages/docs/src/docs/pattern-managing-assets.md @@ -50,6 +50,15 @@ Pattern Lab has a configuration object which allows users to separate source pat Note how some sets of files even extend into the "vendor" `./node_modules/` directory. Relative paths are the default but absolute paths are supported also. You may also use these paths within the Grunt or Gulp taskfiles by referring to the `paths()` function. +## Preventing specific filetypes from being copied + +If you'd like to prevent specific filetypes from being copied from your `source` to your `public` folder like e.g. CSS preprocessor source files (`.scss`), you could specify those within an array of your pattern lab config: +``` json +{ + "transformedAssetTypes": ["scss"], +} +``` + ## Adding Assets to the Pattern Header & Footer Static assets like Javascript and CSS **are not** added automagically to your patterns. You need to add them manually to the [shared pattern header and footer](/docs/modifying-the-pattern-header-and-footer/).