@@ -135,10 +135,10 @@ LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64,linux/r
135
135
GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO ) list code.gitea.io/gitea/models/migrations/...) code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO ) list ./... | grep -v /vendor/) )
136
136
MIGRATE_TEST_PACKAGES ?= $(shell $(GO ) list code.gitea.io/gitea/models/migrations/...)
137
137
138
- WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
139
- WEBPACK_CONFIGS := webpack .config.ts tailwind.config.ts
140
- WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
141
- WEBPACK_DEST_ENTRIES := public/assets/js public/assets/css public/assets/fonts
138
+ RSPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
139
+ RSPACK_CONFIGS := rspack .config.ts tailwind.config.ts
140
+ RSPACK_DEST := public/assets/js/index.js public/assets/css/index.css
141
+ RSPACK_DEST_ENTRIES := public/assets/js public/assets/css public/assets/fonts
142
142
143
143
BINDATA_DEST_WILDCARD := modules/migration/bindata.* modules/public/bindata.* modules/options/bindata.* modules/templates/bindata.*
144
144
@@ -238,7 +238,7 @@ node-check:
238
238
239
239
.PHONY : clean-all
240
240
clean-all : clean # # delete backend, frontend and integration files
241
- rm -rf $(WEBPACK_DEST_ENTRIES ) node_modules
241
+ rm -rf $(RSPACK_DEST_ENTRIES ) node_modules
242
242
243
243
.PHONY : clean
244
244
clean : # # delete backend and integration files
@@ -428,8 +428,8 @@ watch: ## watch everything and continuously rebuild
428
428
429
429
.PHONY : watch-frontend
430
430
watch-frontend : node-check node_modules # # watch frontend files and continuously rebuild
431
- @rm -rf $(WEBPACK_DEST_ENTRIES )
432
- NODE_ENV=development $(NODE_VARS ) pnpm exec webpack --watch --progress --disable-interpret
431
+ @rm -rf $(RSPACK_DEST_ENTRIES )
432
+ NODE_ENV=development $(NODE_VARS ) pnpm exec rspack --watch
433
433
434
434
.PHONY : watch-backend
435
435
watch-backend : go-check # # watch backend files and continuously rebuild
@@ -747,7 +747,7 @@ install: $(wildcard *.go)
747
747
build : frontend backend # # build everything
748
748
749
749
.PHONY : frontend
750
- frontend : $(WEBPACK_DEST ) # # build frontend files
750
+ frontend : $(RSPACK_DEST ) # # build frontend files
751
751
752
752
.PHONY : backend
753
753
backend : go-check generate-backend $(EXECUTABLE ) # # build backend files
@@ -878,15 +878,15 @@ update-py: node-check | node_modules ## update py dependencies
878
878
uv sync
879
879
@touch .venv
880
880
881
- .PHONY : webpack
882
- webpack : $(WEBPACK_DEST ) # # build webpack files
881
+ .PHONY : rspack
882
+ rspack : $(RSPACK_DEST ) # # build rspack files
883
883
884
- $(WEBPACK_DEST ) : $(WEBPACK_SOURCES ) $(WEBPACK_CONFIGS ) pnpm-lock.yaml
884
+ $(RSPACK_DEST ) : $(RSPACK_SOURCES ) $(RSPACK_CONFIGS ) pnpm-lock.yaml
885
885
@$(MAKE ) -s node-check node_modules
886
- @rm -rf $(WEBPACK_DEST_ENTRIES )
887
- @echo " Running webpack ..."
888
- @BROWSERSLIST_IGNORE_OLD_DATA=true $(NODE_VARS ) pnpm exec webpack --disable-interpret
889
- @touch $(WEBPACK_DEST )
886
+ @rm -rf $(RSPACK_DEST_ENTRIES )
887
+ @echo " Running rspack ..."
888
+ @$(NODE_VARS ) pnpm exec rspack
889
+ @touch $(RSPACK_DEST )
890
890
891
891
.PHONY : svg
892
892
svg : node-check | node_modules # # build svg files
0 commit comments