Created
April 3, 2017 03:45
-
-
Save amite/360e4142de81af4e1a9a770f036c502c to your computer and use it in GitHub Desktop.
simple webpack config that loads jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| module.exports = { | |
| entry: './app/src/index.js', | |
| output: { | |
| path: './app/build', | |
| filename: 'bundle.js', | |
| publicPath: '/' | |
| }, | |
| devtool: 'eval-source-map', | |
| plugins: [ | |
| new webpack.ProvidePlugin({ | |
| $: 'jquery', | |
| jQuery: 'jquery', | |
| 'window.jQuery': 'jquery' | |
| }) | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment