• Stars
    star
    99
  • Rank 332,512 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A demo config showing how to enable long-term caching using Webpack. Read [medium link] for details.

webpack-long-term-cache-demo

A demo webpack config showing how to enable long-term caching using Webpack. Read Long-term caching of static assets with Webpack for details.

To enable long-term caching of static resources produced by webpack:

  1. Use [chunkhash] to add a content-dependent cache-buster to each file.
  2. Use compiler stats to get the file names when requiring resources in HTML.
  3. Generate the chunk-manifest JSON and inline it into the HTML page before loading resources.
  4. Ensure that the entry point chunk containing the bootstrapping code doesn’t change its hash over time for the same set of dependencies.
  5. Profit!

How to run

  1. npm install
  2. npm start

More Repositories

1

lint-staged

πŸš«πŸ’© β€” Run linters on git staged files
JavaScript
12,147
star
2

react-scroll-sync

Synced scroll position across multiple scrollable elements
JavaScript
424
star
3

modalbox

Mac OS X style javascript pop-ups for your browser (based on prototype + script.aculo.us)
JavaScript
259
star
4

react-container-dimensions

Wrapper component that detects element resize and passes new dimensions down the tree. Based on https://github.com/wnr/element-resize-detector
JavaScript
231
star
5

dotfiles

Shell
86
star
6

cooltips

CoolTips is a replacement for conventional web-browser tooltips. Cooltips is fully unobtrusive Class based on Prototype & Script.aculo.us, which is functional without any images (pure CSS).
JavaScript
39
star
7

webpack-codemods

JS Codemod to automatically convert webpack config from v1 to v2
JavaScript
31
star
8

metalsmith-remote-json-to-files

Fetch JSON from remote URLs, transform and inject as files into metalsmith pipeline
JavaScript
8
star
9

codestage

Hassle-free code highlighting for Mac
JavaScript
7
star
10

colorist

Creates a palette from the given image (drag'n'drop)
JavaScript
6
star
11

okonet.github.com

Public pages for okonet.github.com
HTML
4
star
12

metalsmith-webpack-dev-server

Starts webpack dev server when running metalsmith
JavaScript
4
star
13

eslint-config-okonet

ESLint sharable config for my OSS projects
JavaScript
4
star
14

export-albums-to-folders

Action Script for iTunes allowing to copy selected albums to a specified location. It creates the folder structure in the specified directory using the following directory mask: [Artist] - [Album] ([YYYY]). Useful to copy bunch of albums to a different location.
4
star
15

CalendarPad

A Mootools based class for a 3 months date selector.
JavaScript
3
star
16

dialogbox

Mootools & Prototype.js class for unobtrusive facebook-style dialogboxes
JavaScript
3
star
17

ColorSnapperSublime

A Sublime Text 2 plugin for picking colors using ColorSnapper app
Python
3
star
18

YTranslator

A Google Chrome extension which simplifies translation of the selected word with lingvo.yandex.ru.
JavaScript
2
star
19

rework-loader

Loader for webpack which uses Rework (https://github.com/reworkcss/rework) post-processor for CSS
JavaScript
2
star
20

slides

Slides and sources for the talks I made
JavaScript
2
star
21

concertino

TypeScript
2
star
22

js-codemods

A collection of codemods for jscodeshift (https://github.com/facebook/jscodeshift)
JavaScript
1
star
23

colorsnapper-prototype

CoffeeScript
1
star
24

reason-conf-assets

JavaScript
1
star
25

idea-source-root-demo

JavaScript
1
star
26

xiaomi-roborock-token-extractor

Extract Xiaomi Roborock Vacuum token from iOS backup
JavaScript
1
star
27

storybook-reproduction-code-block

TypeScript
1
star
28

yandex.slovari.safariextension

Context menu extension to search for translation on Yandex.Slovari for the selected word.
JavaScript
1
star
29

dynamic-route-api-conflict

JavaScript
1
star
30

raycast-caniuse

A Raycast extension to query "Can I Use" database for browser support
TypeScript
1
star
31

debounced

Presentation slides and examples I did for viennajs meetup
JavaScript
1
star