Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 919 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 919 Bytes

Chunk Search

A prototype project that searches for the chunk loader in a Webpack JS file, along with the chunk IDs.

Note

This is only a prototype for testing chunk loader extraction algorithms. This may or may not work for arbitrary Webpack sites.

Usage

Usage:
  ChunkSearch <file> [options]

Arguments:
  <file>  JS file containing the Webpack chunk loader

Options:
  --ast           Show chunk loader AST instead of JS code
  --id            Show chunk IDs
  --version       Show version information
  -?, -h, --help  Show help and usage information

Example

Samples JS files can be found under Samples/:

dotnet run -c release --project ChunkSearch -- ./Samples/small.js

Generate Webpack Files

Sample webpack project can be found under Webpack/. Generate Webpack files by:

cd ./Webpack
npm install
npm run build

The generated Webpack files will be under Webpack/dist/.