Skip to content

Commit 1fd6b45

Browse files
mfranzkeMaximilian FranzkeJosefBredereck
authored
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 <mfr@nzke.net> Co-authored-by: Josef Bredreck <slime.games@outlook.de>
1 parent 000991a commit 1fd6b45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/docs/src/docs/pattern-managing-assets.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ Pattern Lab has a configuration object which allows users to separate source pat
5050

5151
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.
5252

53+
## Preventing specific filetypes from being copied
54+
55+
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:
56+
``` json
57+
{
58+
"transformedAssetTypes": ["scss"],
59+
}
60+
```
61+
5362
## Adding Assets to the Pattern Header &amp; Footer
5463

5564
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/).

0 commit comments

Comments
 (0)