https://github.com/mrsunshyne/mt-demo
https://github.com/mrsunshyne/mt-demo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrsunshyne/mt-demo
- Owner: MrSunshyne
- Created: 2020-10-22T19:45:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-23T06:52:44.000Z (over 4 years ago)
- Last Synced: 2025-01-26T02:52:01.708Z (5 months ago)
- Language: JavaScript
- Size: 177 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mt-demo
## Project setup
```
yarn install
```## Configuration
See vue.config.js file in the repository for more info.
The tenant and tenantDir options need to be set to the following.
```js
let { theme, tenant } = process.env;module.exports = {
configureWebpack: {
plugins: [
WebpackMultitenancyPlugin({
// theme: theme, //Doesn't seem to be necessary
tenant: tenant,
tenantDir: "themes",
}),
],
},
};
```### Compiles and hot-reloads for development
```
tenant=brk yarn dev
```### Compiles and minifies for production with Multi Tenancy
```
tenant=brk yarn build
tenant=mbnd yarn build
```