Skip to content

Revive the project - #10

Open
Giglium wants to merge 10 commits into
guansss:mainfrom
Giglium:main
Open

Giglium wants to merge 10 commits into
guansss:mainfrom
Giglium:main

Conversation

@Giglium

@Giglium Giglium commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Hi @guansss,
In the last year I've performed a lot of improvements on this repo:

  • fix: package paths and add npm prepare script —> improves the npm workflow by using the standard prepare lifecycle script and moves the package entry-point paths from lib/ to dist/lib/. Now you can install it directly from GitHub:
npm install https://github.com/Giglium/webpack-monkey.git
  • refactor: upgrade to webpack-dev-server 5 and webpack-cli 7 —> Closes "match" in meta file didn't support port #4. Upgrades the dependencies and drops some that are no longer used.

  • chore: simplify build scripts —> removes some scripts that are no longer used, and fixes a bug introduced by changing the package paths.

  • ci: add dependabot and CI workflow —> adds dependabot to keep the dependencies updated, and adds CI for lint and static tests.

  • refactor: migrate case-test suite and snapshots —> changes the tests to be native-Node compatible, and rewrites the Playwright suite that had been broken for a long time. I took the occasion to add Tampermonkey as a testing extension.

  • fix: escape backticks in inlined CSS —> Closes Unescaped "`" in CSS Loading #5. A simple missing escape.

  • fix: define MK_GLOBAL fallback for style-loader CSS —> Closes __MK_GLOBAL__ is not defined on adding css. #8. Adds a guard so style-loader works too.

  • docs: update examples and documentation —> updates the README and DEVELOPMENT guide, and rebuilds the examples.

  • feat: warn when a strict CSP blocks the dev client — unfortunately we can't work around a strict CSP (e.g. default-src 'self' without 'unsafe-eval'): it blocks the eval() the dev client uses to evaluate the fetched bundles. So I've added a warning that suggests the workaround (disable the page's CSP with a browser extension during development).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

__MK_GLOBAL__ is not defined on adding css. Unescaped "`" in CSS Loading "match" in meta file didn't support port

1 participant