You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- added new 'make webpack' target
- deprecated 'make js' and 'make css'
- extend webpack config to load the less files
- updated docs
I had to rename the source file of `arc-green.less` to avoid generating
a useless JS entrypoint via webpack-fix-style-only-entries which would
not work with different source/destination filenames. I hear that there
should be cleaner solutions possible once we upgrade to Webpack 5.
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/hacking-on-gitea.en-us.md
+7-10
Original file line number
Diff line number
Diff line change
@@ -140,23 +140,20 @@ You should run revive, vet and spell-check on the code with:
140
140
make revive vet misspell-check
141
141
```
142
142
143
-
### Working on CSS
143
+
### Working on JS and CSS
144
144
145
-
Edit files in `web_src/less` and run the linter and build the CSS files via:
145
+
Edit files in `web_src` and run the linter and build the files in `public`:
146
146
147
147
```bash
148
-
make css
148
+
make webpack
149
149
```
150
150
151
-
### Working on JS
151
+
Note: When working on frontend code, it is advisable to set `USE_SERVICE_WORKER` to `false` in `app.ini` which will prevent undesirable caching of frontend assets.
152
152
153
-
Edit files in `web_src/js`, run the linter and build the JS files via:
153
+
### Building Images
154
154
155
-
```bash
156
-
make js
157
-
```
158
-
159
-
Note: When working on frontend code, it is advisable to set `USE_SERVICE_WORKER` to `false` in `app.ini` which will prevent undesirable caching of frontend assets.
155
+
To build the images, ImageMagick, `inkscape` and `zopflipng` binaries must be available in
0 commit comments