Skip to content

Commit

Permalink
docs(configuration): entry for preventing filetypes from being copied (
Browse files Browse the repository at this point in the history
…#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>
  • Loading branch information
3 people committed Oct 31, 2020
1 parent 000991a commit 1fd6b45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/docs/src/docs/pattern-managing-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 &amp; 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/).

0 comments on commit 1fd6b45

Please sign in to comment.