OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM How do I add a external jQuery Plugin to my Bundle?

This topic contains 3 replies, has 3 voices, and was last updated by  donaldante 5 years, 2 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #30831

    spyout98
    Participant

    ?

    #30832

    omusiienko
    Participant

    The simple way is add a new dependency via https://cdnjs.com/ or just copy needed js component file to your repository

    Into these config files should add a new dependency:

    'jquery-mask-plugin': 'https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.13/jquery.mask.min.js'
    After that you should clear cache and rebuild requirejs dependencies:

    Then this dependency will be available like: require('jquery-mask-plugin');

    #38175

    donaldante
    Participant

    Some plugins and CSS components depend on other plugins. If you include plugins individually, make sure to check for these dependencies in the docs. Also note that all plugins depend on jQuery (this means jQuery must be included before the plugin files).

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroCRM’ is closed to new topics and replies.

Back to top