forked from guansss/webpack-monkey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update browser-extension-url-match dependency
- Closes guansss#4 - Add test case to unsure compatibility with future releases
- Loading branch information
Showing
6 changed files
with
79 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/cases/url-with-port/__snapshots__/url.with.port.test.ts/build-1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// ==UserScript== | ||
// @name Hello world | ||
// @grant GM_log | ||
// @match *://localhost:54220/ | ||
// @version 1.0.0 | ||
// ==/UserScript== | ||
|
||
;(() => { | ||
GM_log("Hello, world!") | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.hot?.monkeyReload() | ||
|
||
GM_log("Hello, world!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
name: "Hello world", | ||
version: "1.0.0", | ||
match: ["*://localhost:54220/"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import path from "path" | ||
import { monkey } from "../../../src" | ||
import { test } from "../../env" | ||
import { testBuild, withCommonConfig } from "../../utils/webpack" | ||
|
||
const config = withCommonConfig({ | ||
entry: path.resolve(__dirname, "index.js"), | ||
output: { | ||
path: path.resolve(__dirname, "dist"), | ||
}, | ||
}) | ||
|
||
test("build", () => testBuild(monkey(config))) |