Skip to content

Commit

Permalink
readme changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adryd325 committed Nov 23, 2023
1 parent 85e2fd3 commit 45b924b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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\<projectName\>
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)

0 comments on commit 45b924b

Please sign in to comment.