By default Pattern Lab deletes most of the files and directories found in
public/ when generating your site or starting the watch. Developers are supposed to use
public/ (after cleaning it) so there shouldn’t be a reason not to use
That said, developers might be more comfortable storing their static assets in
public/. In order to turn-off the automatic cleaning of
public/ do the following:
- Open patternlab-config.json` at the root of your project
- Change the
When you next generate your site or start the watch
public/ will no longer be cleaned. Identically named files will be overridden, however.
The PHP version of Pattern Lab is being deprecated in favor of a new unified Pattern Lab core. The PHP docs for this topic can be viewed here.