How to use Royalslider with webpack

royalslider's Avatar


23 Nov, 2018 09:38 AM

I tried looking for Royalslider on NPM and found this: but none of those packages seem to be a full version of royalscript. I have a license and want to use royalslider in my webpack build and not hand-copy files to the project.

Is it possible to use royalslider with webpack? Otherwise it is back to another slider since we cannot go back to manually placing and updating files anymore.

Thanks in advance.

  1. Support Staff 1 Posted by Dmitry Semenov on 23 Nov, 2018 07:56 PM

    Dmitry Semenov's Avatar


    There is no royalslider on npm, since it permitted by CodeCanyon licensing agreement. On how to use jQuery plugins with webpack you may check articles like

  2. 2 Posted by royalslider on 27 Nov, 2018 08:51 AM

    royalslider's Avatar

    I understand, thank you,

    As a solution I created a small package with the custom minified code, the default .scss and a clean theme file (might be a nice suggestion to create a separate css file with just the class names and a small comment what goes where for easy templating). I just include these files in my build by hand, I just cannot run a simple npm command to get the latest versions but this works. Thanks.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac