Skip to content

Instantly share code, notes, and snippets.

View beInDev's full-sized avatar

Wilfried EVIEUX beInDev

  • Freelance
  • Paris, France
View GitHub Profile
@plinionaves
plinionaves / rollup.config.js
Created April 14, 2021 01:24
rollup + rollup-plugin-vue + scss + postcss
/* eslint-disable @typescript-eslint/no-var-requires */
import { terser } from 'rollup-plugin-terser'
import alias from '@rollup/plugin-alias'
import babel from '@rollup/plugin-babel'
import commonjs from '@rollup/plugin-commonjs'
import minimist from 'minimist'
import postcss from 'rollup-plugin-postcss'
import replace from '@rollup/plugin-replace'
import resolve from '@rollup/plugin-node-resolve'
import typescript from 'rollup-plugin-typescript2'
@loilo
loilo / pass-slots.md
Last active May 23, 2024 16:28
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@dehamzah
dehamzah / generate.js
Last active April 14, 2024 16:47
Generate secret key in NodeJS
require('crypto').randomBytes(48, function(err, buffer) { var token = buffer.toString('hex'); console.log(token); });