Skip to content

Instantly share code, notes, and snippets.

View tylermercer's full-sized avatar

Tyler Mercer tylermercer

View GitHub Profile
@jcao02
jcao02 / package.json
Last active September 13, 2020 15:07
Rollup configuration for VueJS SFC + TypeScript tree-shakable library
{
"name": "your-library-name",
"version": "0.1.0",
"module": "dist/index.js",
"sideEffects": false,
"scripts": {
"build": "rollup --config ./config/rollup.config.js",
"serve": "rollup --config ./config/rollup.config.js --watch",
"test": "jest --config ./config/jest.config.js --rootDir ."
},
@stowball
stowball / example-input.html
Last active January 16, 2023 23:17
Fetch a remote SVG as an <img> and convert it to an inline SVG
<img
alt="accessible text"
class="fill-color-red"
height="16"
src="some.svg"
width="16"
onload="fetchSvgInline(this)"
/>