KillGorack Posted March 26, 2022 Share Posted March 26, 2022 (edited) Ok, Site vulnerability with an older version of jquery-ui, so I update to 1.13.1 with npm. But I cannot find the js file in my node_modules folder. What am I missing? Edited March 26, 2022 by KillGorack Quote Link to comment https://forums.phpfreaks.com/topic/314629-jquery-ui-and-npm-question/ Share on other sites More sharing options...
Solution kicken Posted March 26, 2022 Solution Share Posted March 26, 2022 The npm package doesn't provide a compiled single-file to use. If you want to use it, you'd probably need to use something like webpack to compile everything into a single file for use on your site. Alternatively, there is a jquery-ui-dist package that contains the compiled output and you can just include it like you normally would. Quote Link to comment https://forums.phpfreaks.com/topic/314629-jquery-ui-and-npm-question/#findComment-1594593 Share on other sites More sharing options...
maxxd Posted March 26, 2022 Share Posted March 26, 2022 If you're using webpack or a build process, you can uselet let jqueryui = require('jquery-ui'); That should give you access to the functionality through the jqueryui object. Quote Link to comment https://forums.phpfreaks.com/topic/314629-jquery-ui-and-npm-question/#findComment-1594594 Share on other sites More sharing options...
KillGorack Posted March 26, 2022 Author Share Posted March 26, 2022 31 minutes ago, kicken said: Alternatively, there is a jquery-ui-dist package that contains the compiled output and you can just include it like you normally would. Thanks, that's what we needed. Quote Link to comment https://forums.phpfreaks.com/topic/314629-jquery-ui-and-npm-question/#findComment-1594597 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.