jQuery is undefined
Masquer opened this issue · 0 comments
Masquer commented
What is the proper way of including jQuery to server build?
At the moment I have it listed as entry at webpack config and declared at components where needed:
webpack.config:
"script-loader!./node_modules/jquery/dist/jquery.js",
"script-loader!./node_modules/moment/moment.js",
component.ts:
declare const $: any;
declare const moment: any;
While moment.js is working fine, jQuery doesn't; its not even exposed to my components.
What do I do to properly include it in?