Skip to content

Instantly share code, notes, and snippets.

@datakurre
Last active September 29, 2016 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datakurre/4233c2bee6f8832dcbad849e777da253 to your computer and use it in GitHub Desktop.
Save datakurre/4233c2bee6f8832dcbad849e777da253 to your computer and use it in GitHub Desktop.
Shimming collective.polls for webpack...
// collective.z3cform.widgets
import 'imports?jQuery=jquery!++resource++collective.z3cform.widgets/jquery.tasksplease';
// collective.z3cform.widgets replaces keyword / categorization widget also on Plone 5...
import 'imports?jQuery=jquery!++resource++collective.z3cform.widgets/jquery.tokeninput';
import keywordTokenInputActivate from 'imports?$=jquery,jQuery=jquery!exports?keywordTokenInputActivate!++resource++collective.z3cform.widgets/keywords';
window.keywordTokenInputActivate = keywordTokenInputActivate;
// collective.polls
import 'jquery.browser'; // jquery.browser is no more in jQuery >= 1.9
import 'imports?jQuery=jquery!++resource++collective.polls/js/jquery.flot';
import 'imports?jQuery=jquery!++resource++collective.polls/js/jquery.flot.pie';
import 'imports?jQuery=jquery,window=>{jQuery:jQuery}!++resource++collective.polls/js/polls';
import 'imports?jQuery=jquery,window=>{jQuery:jQuery}!++resource++collective.polls/js/collective.poll';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment