-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add jquery plugin in the provideplugin of the webpack #1037
Comments
The ng2-bootstrap is a project to provide Bootstrap widgets for Angular 2 without jQuery (widgets are written in Angular 2). So please do not include jQuery! |
So how can I add plugins in my app ?? |
What kind of plugins? |
I want to add this example : http://www.jqueryscript.net/chart-graph/Canvas-Based-Temperature-Gauge-Plugin-For-jQuery-TempGauge.html |
Then you should use Bootstrap with jQuery. We can't provide support for webpack with Bootstrap and jQuery in this project because it is offtopic. Please ask the webpack, Bootstrap or jQuery guys. @valorkin or do you think differently about? |
I found the solution for using jQuery with angular 2 but I would like to know where can I add this code : plugins: [ I get it from (drgullin/icheck#322) , the webpack.config.js is complicated to understand |
Then add it to your webpack config? Do you have a webpack project? |
yes , but I just tell you I don't know or I don't find where to add it , there is many files related to the webconfig.ts |
Please understand that your question is a webpack related and not ng2-bootstrap related... Do you have a webpack.common.js file? Add the plugin inside the plugins list. |
Hello , I want to add the jquery plugin in the webpack file , but I don't find where to add it ,
plugins: [
new webpack.ProvidePlugin({
'window.jQuery': 'jquery',
'window.$': 'jquery',
})
],
Where to add this code ???
The text was updated successfully, but these errors were encountered: