IncludeResourceTask 🔗
Copies or symlinks a file or directory within your project.
Name | Type | Description | Default | Required |
---|---|---|---|---|
mode | string | Either copy or symlink . Inherited from build.artifact_mode if available. |
symlink |
No |
source | string | Path to the resource. | n/a | Yes |
dest | string | Path where the resource should be included in your build. | n/a | Yes |
<!-- Copy generated CSS into your theme. -->
<includeresource mode="copy" source="styleguide/src/content/assets/css" dest="web/themes/custom/my_theme/css" />
<!-- Use build properties to include a JS library in your Drupal libraries directory -->
<includeresource mode="${build.artifact_mode}" source="vendor/foo/somelibrary" dest="${drupal.root}/libraries/somelibrary" />