Problem
/AJAXRequest.js is 78KB
/dist/AJAXRequest.js is 64KB
Unclear which is the canonical source and why they differ.
Suggestion
- Document the build process in README or CONTRIBUTING.md
- Add build script to package.json
- Clarify in README which file to use for development vs production
- Consider making
/dist the only distribution folder
Proposed package.json scripts
{
"scripts": {
"build": "...",
"minify": "terser AJAXRequest.js -o dist/AJAXRequest.min.js"
}
}
Problem
/AJAXRequest.jsis 78KB/dist/AJAXRequest.jsis 64KBUnclear which is the canonical source and why they differ.
Suggestion
/distthe only distribution folderProposed package.json scripts
{ "scripts": { "build": "...", "minify": "terser AJAXRequest.js -o dist/AJAXRequest.min.js" } }