This repository has been archived on 2025-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
moodle-local_treestudyplan/amd/src/portal-vue/readme-moodle.txt

19 lines
705 B
Text
Raw Normal View History

Instructions for downloading and integrating portal-vue
1. download bootstrap-vue distribusion throuhg npm
npm install portal-vue
2. Copy node_modules/portal-vue/dist/portal-vue.esm.js to amd/src/portal-vue
3. Change import statements on top of bootstrap-vue.esm to:
/* Modification to handle relative loading of vue */
// Import Vue from dev or prod depending on the developerdebug setting.
// (Importing both dev and prod seems easier than using dynamic imports, but I could be mistaken)
import Config from "core/config";
import VueDev from '../vue/dev/vue';
import VueProd from '../vue/prod/vue';
const Vue = Config.developerdebug?VueDev:VueProd;
/* End modification */