Skip to content

Commit

Permalink
chore: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Aug 14, 2024
1 parent 21cfaa0 commit 7b309f5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules/
build/
src/devtools.js
eruda-vue.js
eruda-vue.js.map
package-lock.json
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/devtools.js
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
"version": "1.0.0",
"main": "eruda-vue.js",
"files": [
"build",
"eruda-vue.js",
"eruda-vue.js.map"
],
"scripts": {
"init": "git submodule init && git submodule update && npm install --force && cd vue-devtools && yarn && npm run build && npm run init:front",
"init": "git submodule init && git submodule update && npm install --force && cd vue-devtools && yarn && npm run build",
"init:front": "npm run build:front && npm run copy:front",
"build:front": "cd vue-devtools/packages/shell-eruda && npm run build",
"copy:front": "lsla shx cp -r vue-devtools/packages/shell-eruda/build build",
"copy:front": "lsla shx cp -r vue-devtools/packages/shell-eruda/build/devtools.js src/devtools.js",
"dev": "webpack-dev-server --host 0.0.0.0 --mode development",
"build": "webpack --mode production",
"ci": "npm run lint && npm run build",
Expand All @@ -37,6 +36,7 @@
"postcss": "^8.4.21",
"postcss-class-prefix": "^0.3.0",
"postcss-loader": "^7.0.2",
"raw-loader": "^4.0.2",
"sass": "^1.77.8",
"sass-loader": "^14.2.1",
"webpack": "^5.93.0",
Expand Down
3 changes: 2 additions & 1 deletion src/back.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { installHook } from '@back/hook'
import { initBackend } from '@back'
import { Bridge } from '@utils/bridge'
import createUrl from 'licia/createUrl'
import devtools from 'raw-loader!./devtools.js'

installHook(window)

Expand All @@ -25,7 +26,7 @@ export function initDevtools(iframe) {
</head>
<body>
<div id="app"></div>
<script src="http://localhost:8080/build/devtools.js"></script>
<script>${devtools}</script>
</body>
</html>`,
{
Expand Down

0 comments on commit 7b309f5

Please sign in to comment.