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
Copy file name to clipboardExpand all lines: docusaurus/docs/dev-docs/admin-panel-customization.md
+86-9Lines changed: 86 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ import FeedbackCallout from '/docs/snippets/backend-customization-feedback-cta.m
10
10
const captionStyle = {fontSize: '12px'}
11
11
const imgStyle = {width: '100%', margin: '0' }
12
12
13
-
The admin panel is a `node_module` that is similar to a plugin, except that it encapsulates all the installed plugins of a Strapi application. Some of its aspects can be [customized](#customization-options), and plugins can also [extend](#extension) it.
13
+
The admin panel is a React-based single-page application. It encapsulates all the installed plugins of a Strapi application. Some of its aspects can be [customized](#customization-options), and plugins can also [extend](#extension) it.
14
14
15
15
To start your strapi instance with hot reloading while developing, run the following command:
16
16
17
17
```bash
18
18
cd my-app # cd into the root directory of the Strapi application project
19
-
strapi develop
19
+
strapi develop --watch-admin
20
20
```
21
21
22
22
## Customization options
@@ -27,7 +27,6 @@ Customizing the admin panel is helpful to better reflect your brand identity or
27
27
- The [configuration object](#configuration-options) allows replacing the logos and favicon, defining locales and extending translations, extending the theme, and disabling some Strapi default behaviors like displaying video tutorials or notifications about new Strapi releases.
28
28
- The [WYSIWYG editor](#wysiwyg-editor) can be replaced or customized.
29
29
- The [email templates](#email-templates) should be customized using the Users and Permissions plugin.
30
-
- The [webpack configuration](#webpack-configuration) based on webpack 5 can also be extended for advanced customization
31
30
32
31
### Access URL
33
32
@@ -537,15 +536,24 @@ export default {
537
536
538
537
Email templates should be edited through the admin panel, using the [Users and Permissions plugin settings](/user-docs/settings/configuring-users-permissions-plugin-settings#configuring-email-templates).
539
538
540
-
### Webpack configuration
539
+
## Bundlers (experimental)
540
+
541
+
2 different bundlers can be used with your Strapi application, [webpack](#webpack) and [vite](#vite).
542
+
543
+
### Webpack
544
+
545
+
In v4 this is the defacto bundler that Strapi uses to build the admin panel.
541
546
542
547
:::prerequisites
543
-
Make sure to rename the default `webpack.config.example.js` file into `webpack.config.js` before customizing webpack.
548
+
Make sure to rename the default `webpack.config.example.js` file into `webpack.config.[js|ts]` before customizing webpack.
544
549
:::
545
550
546
-
In order to extend the usage of webpack v5, define a function that extends its configuration inside `./my-app/src/admin/webpack.config.js`:
551
+
In order to extend the usage of webpack v5, define a function that extends its configuration inside `./my-app/src/admin/webpack.config.[js|ts]`:
Copy file name to clipboardExpand all lines: docusaurus/docs/dev-docs/cli.md
+29-20Lines changed: 29 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,26 +59,30 @@ Strapi modifies/creates files at runtime and needs to restart when new files are
59
59
60
60
Strapi also adds middlewares to support HMR (Hot Module Replacement) for the administration panel. This allows you to customize the administration panel without having to restart the application or run a separate server. This is only added when you use the `--watch-admin` command.
Starts your application with the autoReload enabled and the front-end development server. It allows you to customize the administration panel. Provide a browser name to use instead of the default one, `false` means stop opening the browser.
0 commit comments