-
What is the recommended method to including dependances like jQuery or Boostrap? Do I add them to the package.json file then reference them in the node_modules directory? |
Beta Was this translation helpful? Give feedback.
Answered by
hayes0724
Dec 10, 2020
Replies: 2 comments
-
I think this is the way, installing them via NPM so they get added to package.json and then import them in the theme.js |
Beta Was this translation helpful? Give feedback.
0 replies
-
There are several methods I usually install via npm and add to the top of my theme.js file: import jquery from 'jquery';
window.$ = window.jQuery = $ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hayes0724
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
There are several methods I usually install via npm and add to the top of my theme.js file: