|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
457 bytes
|
| Line | |
|---|
| 1 | # @svgr/babel-plugin-replace-jsx-attribute-value
|
|---|
| 2 |
|
|---|
| 3 | ## Install
|
|---|
| 4 |
|
|---|
| 5 | ```
|
|---|
| 6 | npm install --save-dev @svgr/babel-plugin-replace-jsx-attribute-value
|
|---|
| 7 | ```
|
|---|
| 8 |
|
|---|
| 9 | ## Usage
|
|---|
| 10 |
|
|---|
| 11 | **.babelrc**
|
|---|
| 12 |
|
|---|
| 13 | ```json
|
|---|
| 14 | {
|
|---|
| 15 | "plugins": [
|
|---|
| 16 | [
|
|---|
| 17 | "@svgr/babel-plugin-replace-jsx-attribute-value",
|
|---|
| 18 | {
|
|---|
| 19 | "values": [
|
|---|
| 20 | { "value": "#000", "newValue": "#fff" },
|
|---|
| 21 | { "value": "blue", "newValue": "props.color", "literal": true }
|
|---|
| 22 | ]
|
|---|
| 23 | }
|
|---|
| 24 | ]
|
|---|
| 25 | ]
|
|---|
| 26 | }
|
|---|
| 27 | ```
|
|---|
| 28 |
|
|---|
| 29 | ## License
|
|---|
| 30 |
|
|---|
| 31 | MIT
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.