qrcode creator based on node-canvas and qr-js
install Cairo first, For system-specific installation view the Wiki from node-canvas
| import sveltePreprocess from 'svelte-preprocess'; | |
| import css from 'rollup-plugin-css-only'; | |
| import svelte from 'rollup-plugin-svelte'; | |
| import nodePolyfills from 'rollup-plugin-polyfill-node'; | |
| import commonjs from '@rollup/plugin-commonjs'; | |
| import resolve from '@rollup/plugin-node-resolve'; | |
| import terser from '@rollup/plugin-terser'; | |
| import typescript from '@rollup/plugin-typescript'; | |
| import { babel } from '@rollup/plugin-babel'; | |
| import replace from '@rollup/plugin-replace'; |
| const mounted = useRef(); | |
| useEffect(() => { | |
| if (!mounted.current) { | |
| mounted.current = true; | |
| } else { | |
| // do componentDidUpate logic | |
| } | |
| }); |
qrcode creator based on node-canvas and qr-js
install Cairo first, For system-specific installation view the Wiki from node-canvas
| server | |
| { | |
| listen 80; | |
| #listen [::]:80; | |
| server_name likidu.com www.likidu.com; | |
| index index.html index.htm; | |
| root /home/wwwroot/likidu.com; | |
| include none.conf; | |
| #error_page 404 /404.html; |
| # Nginx Reverse Proxy for NodeJS Apps | |
| server | |
| { | |
| listen 80; | |
| server_name wechat.io; | |
| index index.html index.htm index.php default.html default.htm default.php; | |
| root /home/wwwroot/wechat.io; | |
| include none.conf; | |
| if ($http_host != "wechat.io") { |