Skip to content

Commit 392521d

Browse files
authored
docs: added a section for precompiled filetypes (#1440)
1 parent 4bf845e commit 392521d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

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

5353
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.
5454

55+
## Preprocessed files
56+
57+
In case you're using a preprocessor to e.g. compile TypeScript files to JavaScript files, or SCSS/SASS files to CSS files, you might want to use your solution of choice, that perfectly fits your needs. Pattern lab doesn't restrict you at all on this, and as well doesn't deliver any defaults for the general pattern files. So e.g. you could install [`sass` node package](https://www.npmjs.com/package/sass) to compile `.scss` files, add a script to your `package.json` as well, and let those files get genereated at the `./source/css` folder.
58+
59+
You might want to even also ignore those source files from being copied over to your `public` folders, as they won't need to get delivered to a hosting environment, which we describe in the next section.
60+
5561
## Preventing specific filetypes from being copied
5662

5763
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:

0 commit comments

Comments
 (0)