Skip to content

Commit

Permalink
feat(uikit-workshop): add plugin-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
bmuenzenmeyer committed Sep 6, 2019
1 parent 2f3d39a commit fc966d6
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 4 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions packages/uikit-workshop/src/scripts/components/panels.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ function init(event) {
language: 'markup',
keyCombo: 'ctrl+shift+y',
});

if (!window.patternlab) {
window.patternlab = {};
}
window.patternlab.panels = Panels;
}

// gather panels from plugins
Expand Down
7 changes: 7 additions & 0 deletions packages/uikit-workshop/src/scripts/patternlab-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ import(
'./components/pl-viewport-size-list/pl-viewport-size-list'
);

import(
/* webpackChunkName: "pl-plugin-loader" */
/* webpackMode: "lazy" */
/* webpackPrefetch: true */
'./components/plugin-loader'
);

import(
/* webpackChunkName: "pl-modal-viewer" */
/* webpackMode: "lazy" */
Expand Down

0 comments on commit fc966d6

Please sign in to comment.