to-bitmap-file
This parser helps you generate PNG and JPG files from your bitmap assets.
Interface
Options
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
|
|
|
| The mustache template used to generate the file path to write to the file system.
Available variables:
|
Basic usage - single mode
Advanced usage - Several modes by definition (@1x, @2x...)
Our bitmap is named "image", is in a group named "assets", and has 2 modes for each definition parameter: 1x and 2x.
By default, this parser will generate the following output: {directoryPath}/{groups}/{bitmapName}.{png|jpg}
Last updated