Skip to content

Instantly share code, notes, and snippets.

@knicola
knicola / vite.config.ts
Created May 13, 2025 17:27
Quick n dirty dependency size check w/ vite
import { dependencies } from './package.json'
export default defineConfig({
build: {
rollupOptions: {
output: {
manualChunks: {
...Object.fromEntries(
Object.keys(dependencies).map((key) => [key, [key]])
),
/**
*
* Created by: Daniel Flynn
* Date: Mar 04, 2013
* jQuery plugin for a lazy loading slideshow
* Assumes that the slides or content is in order and has a data-src attribute.
*
* Currently is only working with images as content. Other file types will be added
* in as development continues
*