Skip to content

Instantly share code, notes, and snippets.

View egoist's full-sized avatar
🙏
Please support my open-source projects!

EGOIST egoist

🙏
Please support my open-source projects!
View GitHub Profile
We couldn’t find that file to show.
<template>
<div>{{ page.profile.name }}</div>
</template>
<script>
export default {
props: ['page']
}
</script>

You may want to manipulate initial HTML to inject some <link>s or <script>s, you can do this with setHead in saber-browser.js or head component option, but that adds bytes to your app runtime, Saber actually has an API that allows you to customize initial HTML.

Open saber-node.js:

exports.getDocumentData = documentData => {
  documentData.bodyScript += `<script>console.log('Run a script after your app code')</script>`
  return data
}
Verifying my Blockstack ID is secured with the address 14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w https://explorer.blockstack.org/address/14m5dDv9vS52wHFeQZWF1XMbGAMZDCvi4w
@egoist
egoist / patreon-banner.png
Last active April 8, 2019 16:56
Support my work on Patreon!
patreon-banner.png
<div>hello {name}</div>
<script>
export default {
data() {
return {
name: 'egoist'
}
}
}
@egoist
egoist / cmd.bash
Last active February 22, 2019 07:35
postcss load plugin
npm i -g postcss-cli
postcss in.css -o out.css
@egoist
egoist / vbuild-6-to-7.md
Last active April 16, 2017 14:53
Migrate vbuild 6 to 7

CLI

- vbuild --dev
+ vbuild dev

- vbuild --watch
+ vbuild watch
-1px 1px 0 #CFD1D3, -2px 2px 0 #CFD1D3, -3px 3px 0 #CFD1D3, -4px 4px 0 #CFD1D3, -5px 5px 0 #CFD1D3, -6px 6px 0 #CFD1D3, -7px 7px 0 #CFD1D3, -8px 8px 0 #CFD1D3, -9px 9px 0 #CFD1D3, -10px 10px 0 #CFD1D3, -11px 11px 0 #CFD1D3, -12px 12px 0 #CFD1D3, -13px 13px 0 #CFD1D3, -14px 14px 0 #CFD1D3, -15px 15px 0 #CFD1D3, -16px 16px 0 #CFD1D3, -17px 17px 0 #CFD1D3, -18px 18px 0 #CFD1D3, -19px 19px 0 #CFD1D3, -20px 20px 0 #CFD1D3, -21px 21px 0 #CFD1D3, -22px 22px 0 #CFD1D3, -23px 23px 0 #CFD1D3, -24px 24px 0 #CFD1D3, -25px 25px 0 #CFD1D3, -26px 26px 0 #CFD1D3, -27px 27px 0 #CFD1D3, -28px 28px 0 #CFD1D3, -29px 29px 0 #CFD1D3, -30px 30px 0 #CFD1D3, -31px 31px 0 #CFD1D3, -32px 32px 0 #CFD1D3, -33px 33px 0 #CFD1D3, -34px 34px 0 #CFD1D3, -35px 35px 0 #CFD1D3, -36px 36px 0 #CFD1D3, -37px 37px 0 #CFD1D3, -38px 38px 0 #CFD1D3, -39px 39px 0 #CFD1D3, -40px 40px 0 #CFD1D3, -41px 41px 0 #CFD1D3, -42px 42px 0 #CFD1D3, -43px 43px 0 #CFD1D3, -44px 44px 0 #CFD1D3, -45px 45px 0 #CFD1D3, -46px 46px 0 #CFD1D3, -47px 47px 0 #CFD1D3, -48px 48