Skip to content

Commit 2815aa0

Browse files
committed
fix static asset paths
1 parent c90904f commit 2815aa0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/frontend/webpack.common.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
test: /\.(wasm)$/i,
1818
type: 'asset/resource',
1919
generator: {
20-
filename: 'modules/[hash][ext][query]'
20+
filename: 'modules/frontend/[hash][ext][query]'
2121
}
2222
},{
2323
test: /\.(css)$/i,
@@ -26,13 +26,13 @@ export default {
2626
test: /\.(png|svg|jpg|jpeg|gif)$/i,
2727
type: 'asset/resource',
2828
generator: {
29-
filename: 'images/[hash][ext][query]'
29+
filename: 'images/frontend/[hash][ext][query]'
3030
}
3131
},{
3232
test: /\.(woff|woff2|eot|ttf|otf)$/i,
3333
type: 'asset/resource',
3434
generator: {
35-
filename: 'fonts/[hash][ext][query]'
35+
filename: 'fonts/frontend/[hash][ext][query]'
3636
}
3737
}
3838
],

packages/gateway/src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const app = express()
66
app.use('/rest', proxy({ target: 'http://localhost:3001' }))
77
app.use('/rest-doc', proxy({ target: 'http://localhost:3001' }))
88
app.use('/mqtt', proxy({ target: 'http://localhost:3004/', ws: true }))
9+
app.use('/modules/worker', proxy({ target: 'http://localhost:3005' }))
910
app.use('/scripts/worker', proxy({ target: 'http://localhost:3005' }))
1011
app.use('/', proxy({ target: 'http://localhost:3002' }))
1112

packages/worker/webpack.common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
test: /\.(wasm)$/i,
1616
type: 'asset/resource',
1717
generator: {
18-
filename: 'modules/[hash][ext][query]'
18+
filename: 'modules/worker/[hash][ext][query]'
1919
}
2020
}
2121
],

0 commit comments

Comments
 (0)