Skip to content

Commit

Permalink
fix bundling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yottahmd committed Aug 10, 2023
1 parent 964710e commit 92f8f75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- name: Copy web assets
run: |
cp ui/dist/bundle.js ./internal/web/handlers/assets/js/
cp ui/dist/*.js ./internal/web/handlers/assets/js/
- name: Run protoc
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Copy web assets
run: |
cp ui/dist/bundle.js ./internal/web/handlers/assets/js/
cp ui/dist/*.js ./internal/web/handlers/assets/js/
- name: Cache Go modules
uses: actions/cache@v1
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ build: build-ui build-dir gen-pb build-bin
build-ui:
@cd ui; \
yarn && yarn build
@cp ui/dist/bundle.js ./internal/web/handlers/assets/js/
@cp ui/dist/*.js ./internal/web/handlers/assets/js/

test:
@go test -v ./...
Expand Down
2 changes: 1 addition & 1 deletion ui/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
publicPath: '/',
publicPath: '/assets/js/',
clean: true,
},
};

0 comments on commit 92f8f75

Please sign in to comment.