From 45b924bee33d3274e14f57317fde322846727bf9 Mon Sep 17 00:00:00 2001 From: adryd Date: Thu, 23 Nov 2023 10:06:36 -0500 Subject: [PATCH] readme changes --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 3af8160..1ede4ed 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,22 @@ Hi, while this "Works" right now, its not well documented; and a lot is subject to change. +## Installing +The runtime with an example config for twitter can be installed from https://adryd325.github.io/webpackTools/webpackTools.user.js + +## Updating +To update to the latest webpackTools runtime while maintaining your existing config, edit your userscript and replace the string after `const runtime = ` with https://adryd325.github.io/webpackTools/webpackTools.runtime.json. + +## How to determine if something is Webpack 4 or Webpack 5 +TODO: actually explain this + +Webpack 5 typically names its jsonp array webpackChunk\ +Webpack 4 typically names its jsonp array webpackJsonp + +to double check you can find the first array with 3 entries +if the 3rd entry is an array with strings, its webpack 4 +if the 3rd entry is a function it's webpack 5 + +rspack seems to compile to webpack 5 runtime + ## Credits A lot of this is based on research by [Mary](https://github.com/mstrodl) and [Cynthia](https://github.com/cynosphere) (HH3), and [Twilight Sparkle](https://github.com/twilight-sparkle-irl/) (webcrack, crispr) \ No newline at end of file