UNPKG
@calvin_von/proxy-plugin-inject
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.1.0-beta
1.0.0
1.0.0-beta.1
1.0.0-beta
A dalao-proxy plugin for inject scripts into html
@calvin_von/proxy-plugin-inject
/
presets
/
mobile-console.js
14 lines
(13 loc)
•
341 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = { rules: { test: "(/|(.html))", serves: { "eruda.js": require.resolve("eruda"), }, template: `
<
script
defer
src
=
"{{eruda.js}}"
>
</
script
>
<
script
>
window
.
addEventListener
(
'load'
,
window
.
eruda
.
init
.
bind
(
window
.
eruda
))
</
script
>
`, insert: "head", }, };