{"action":"created","issue":{"url":"https://api.github.com/repos/ruanyf/webpack-demos/issues/4","labels_url":"https://api.github.com/repos/ruanyf/webpack-demos/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ruanyf/webpack-demos/issues/4/comments","events_url":"https://api.github.com/repos/ruanyf/webpack-demos/issues/4/events","html_url":"https://github.com/ruanyf/webpack-demos/issues/4","id":101248868,"number":4,"title":"Exposing jQuery to window","user":{"login":"tb","id":71683,"avatar_url":"https://avatars.githubusercontent.com/u/71683?v=3","gravatar_id":"","url":"https://api.github.com/users/tb","html_url":"https://github.com/tb","followers_url":"https://api.github.com/users/tb/followers","following_url":"https://api.github.com/users/tb/following{/other_user}","gists_url":"https://api.github.com/users/tb/gists{/gist_id}","starred_url":"https://api.github.com/users/tb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tb/subscriptions","organizations_url":"https://api.github.com/users/tb/orgs","repos_url":"https://api.github.com/users/tb/repos","events_url":"https://api.github.com/users/tb/events{/privacy}","received_events_url":"https://api.github.com/users/tb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-16T10:00:30Z","updated_at":"2015-08-16T14:01:15Z","closed_at":null,"body":"I have trouble to get jQuery exposed to window. This does not work. I tried in to use ProvidePlugin described on http://webpack.github.io/docs/shimming-modules.html on but it did not work in demo09.\r\n\r\n    plugins: [\r\n      //...\r\n      new webpack.ProvidePlugin({\r\n          $: \"jquery\",\r\n          jQuery: \"jquery\",\r\n          \"window.jQuery\": \"jquery\"\r\n      })\r\n    ]"},"comment":{"url":"https://api.github.com/repos/ruanyf/webpack-demos/issues/comments/131554080","html_url":"https://github.com/ruanyf/webpack-demos/issues/4#issuecomment-131554080","issue_url":"https://api.github.com/repos/ruanyf/webpack-demos/issues/4","id":131554080,"user":{"login":"ruanyf","id":905434,"avatar_url":"https://avatars.githubusercontent.com/u/905434?v=3","gravatar_id":"","url":"https://api.github.com/users/ruanyf","html_url":"https://github.com/ruanyf","followers_url":"https://api.github.com/users/ruanyf/followers","following_url":"https://api.github.com/users/ruanyf/following{/other_user}","gists_url":"https://api.github.com/users/ruanyf/gists{/gist_id}","starred_url":"https://api.github.com/users/ruanyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruanyf/subscriptions","organizations_url":"https://api.github.com/users/ruanyf/orgs","repos_url":"https://api.github.com/users/ruanyf/repos","events_url":"https://api.github.com/users/ruanyf/events{/privacy}","received_events_url":"https://api.github.com/users/ruanyf/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T14:01:15Z","updated_at":"2015-08-16T14:01:15Z","body":"It worked for me.\r\n\r\n```javascript\r\n// webpack.config.js\r\nvar webpack = require('webpack');\r\n\r\nmodule.exports = {\r\n  entry: {\r\n    app: './main.js'\r\n  },\r\n  output: {\r\n    filename: 'bundle.js'\r\n  },\r\n  plugins: [\r\n    new webpack.ProvidePlugin({\r\n      $: \"jquery\",\r\n      jQuery: \"jquery\",\r\n      \"window.jQuery\": \"jquery\"\r\n    })\r\n  ]\r\n};\r\n```"}}