Template plugin
This is a demo for plugin
Hosted project
frontend-app-learning::env.config.jsx
import {
PLUGIN_OPERATIONS,
DIRECT_PLUGIN,
} from "@openedx/frontend-plugin-framework";
import hideCourseSuggestionsForEnterpriseLearners from "@edx/course-end-recommendations-plugin";
const config = {
...process.env,
pluginSlots: {
course_recommendations_slot: {
keepDefault: true,
plugins: [
{
op: PLUGIN_OPERATIONS.Modify,
widgetId: 'default_contents',
fn: hideCourseSuggestionsForEnterpriseLearners,
},
],
},
},
};
export default config;
frontend-app-learning::module.config.js
module.exports = {
localModules: [
{
moduleName: "@edx/course-end-recommendations-plugin",
dir: "../src/frontend-plugins/packages/course-end-recommendations-plugin",
},
],
};