[docs] Updated readme on how to install plugins

This commit is contained in:
Ferdinand Thiessen 2021-05-25 22:09:26 +02:00
parent 1802081ad2
commit 873fee3301
1 changed files with 24 additions and 3 deletions

View File

@ -36,8 +36,29 @@ Be aware npm might not work.
### Configure Plugins
You can activate and deactive Plugins in `src/boot/plugins.ts`.
You have to set the name of the Plugin into `config.loadModules`.
#### Installing a plugin
Simply add it as a dependency and install it, for example installing the `pricelist`-plugin:
```sh
yarn add '@flaschengeist/pricelist'
yarn install
```
#### Enable / Disable a plugin
After installing a plugin you will have to enable it,
this is done by adding it to the `plugin.config.js` file.
For the example above the file should look like:
```js
module.exports = [
// pricelist plugin:
'@flaschengeist/pricelist',
];
```
Remember to rebuild the project
### Configure Backend
@ -49,7 +70,7 @@ This access needs to be configured in `src/config.ts'->config.baseURL
### Build the application
```bash
```sh
yarn quasar build
```