Skip to content
This repository was archived by the owner on Aug 8, 2019. It is now read-only.
Matthew Dapena-Tretter edited this page Jan 23, 2014 · 8 revisions

How do I use jQuery?

For versions of jQuery greater than or equal to 1.10, you shouldn't need to do anything special: just make sure that webpack can find jQuery and require('jquery') in your modules.

If you're using 1.9 or less, you'll need to explicitly tell jQuery that webpack wants it to expose itself as an AMD module by adding this to your config:

{
    amd: {
        jQuery: true
    }
    ...
}

See the amd configuration option for more information.

Clone this wiki locally