Added bootstrapvue lib include instructions

This commit is contained in:
PMKuipers 2023-08-22 07:49:27 +02:00
parent b0bf34864a
commit 90e2de1c44

View File

@ -0,0 +1,23 @@
Instructions for recreation:
1. download bootstrap-vue distribusion throuhg npm
npm install bootstrap-vue@2.23.1
2. Copy node_modules/bootstrap-vue/dist/bootstrap-vue.esm.js to amd/src/bootstrap-vue
Copy node_modules/bootstrap-vue/dist/bootstrap-vue.min.css to css/bootstrap-vue
3. Change import statements on top of bootstrap-vue.esm to:
/* Path modifications to handle relative loading of vue in moodle context */
// 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;
import { mergeData } from './vue-functional-data-merge';
import Popper from 'core/popper'; // Popper is included in core
import { Wormhole, PortalTarget, Portal } from '../portal-vue/portal-vue.esm';
/* End modifications */