You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: packages/docs/src/docs/pattern-managing-assets.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,15 @@ Pattern Lab has a configuration object which allows users to separate source pat
50
50
51
51
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.
52
52
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
+
53
62
## Adding Assets to the Pattern Header & Footer
54
63
55
64
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