Skip to content

Commit 58d769c

Browse files
committed
Resort to using url-loader, and update azure file
1 parent 27f0ce0 commit 58d769c

File tree

6 files changed

+106
-4
lines changed

6 files changed

+106
-4
lines changed

azure-pipelines.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- task: NodeTool@0
1313
inputs:
14-
versionSpec: '16.x'
14+
versionSpec: '22.x'
1515
displayName: 'Install Node.js'
1616

1717
- script: npm install
@@ -57,7 +57,7 @@ jobs:
5757
steps:
5858
- task: NodeTool@0
5959
inputs:
60-
versionSpec: '16.x'
60+
versionSpec: '22.x'
6161
displayName: 'Install Node.js'
6262

6363
- powershell: |

package-lock.json

+92
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"ts-loader": "^7.0.0",
9191
"tslib": "1.11.1",
9292
"typescript": "4.9.5",
93+
"url-loader": "^4.1.1",
9394
"vue-cli-plugin-electron-builder": "^2.0.0",
9495
"webpack": ">=5.0.0"
9596
},

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</div>
1717
</div>
1818
<div class="content-modal-wrapper">
19-
<div class="static-bg" />
19+
<div class="static-bg" ></div>
2020
<div class="content-modal">
2121
<router-view />
2222
</div>

src/background-thread/flo/flo-network-test.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { EventEmitter } from 'events';
22
import dgram from 'dgram';
3-
import { IFloNetworkTest, IFloNetworkTestRequest, IFloNodeNetworkInfo } from '@/types/flo-types';
3+
import { IFloNetworkTest, IFloNetworkTestRequest } from '@/types/flo-types';
44
import { FloNodeNetworkInfoWrapper } from './flo-node-network-wrapper';
55
import { ENodeNetworkTesterEvents } from './node-network-tester';
66
import { BrowserWindow, ipcMain, IpcMainEvent } from 'electron';

vue.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { defineConfig } = require('@vue/cli-service')
22
const webpack = require('webpack')
33

44
module.exports = defineConfig({
5+
publicPath: "/",
56
pluginOptions: {
67
electronBuilder: {
78
externals: [
@@ -51,6 +52,14 @@ module.exports = defineConfig({
5152
}
5253
},
5354
configureWebpack: (config) => {
55+
config.module.rules = [...config.module.rules, {
56+
test: /\.(png|jpg|gif|svg|xcf|otf)$/i,
57+
loader: 'url-loader',
58+
options: {
59+
esModule: false,
60+
},
61+
type: 'javascript/auto'
62+
}]
5463
if (process.env.NODE_ENV === "development") {
5564
config.devtool = "eval-source-map";
5665
config.output.devtoolModuleFilenameTemplate = (info) =>

0 commit comments

Comments
 (0)