Created
August 12, 2020 05:12
-
-
Save atomicpages/2e735bc0c44e4b07194e43c8754dab58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import air_play from './icons/airplay.svg'; | |
export { air_play }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "demo_svgr", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"@rollup/plugin-url": "^5.0.1", | |
"@svgr/rollup": "^5.4.0", | |
"rollup": "^2.23.1" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import svgr from '@svgr/rollup'; | |
import url from '@rollup/plugin-url'; | |
export default { | |
input: './src/index.js', | |
output: { | |
file: './build/index.js', | |
format: 'esm' | |
}, | |
external: ['react'], | |
plugins: [ | |
url(), | |
svgr(), | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment