Created
February 8, 2017 02:22
-
-
Save gtsafas/9ab6c152325ba3742c57a2ce73c8ea08 to your computer and use it in GitHub Desktop.
This file contains 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
var webpack = require('webpack'); | |
var path = require('path'); | |
module.exports = { | |
entry: './src/index.js', | |
output: { | |
path: path.resolve(__dirname, 'dist'), | |
filename: 'bundle.js' | |
}, | |
module: { | |
rules: [ | |
{test: /\.(js|jsx)$/, use: 'babel-loader'}, | |
{ test: require.resolve('jquery'), enforce: 'post', use: "expose-loader?$!expose-loader?jQuery" }, | |
], | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment