Skip to content

Instantly share code, notes, and snippets.

@gtsafas
Created February 8, 2017 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtsafas/9ab6c152325ba3742c57a2ce73c8ea08 to your computer and use it in GitHub Desktop.
Save gtsafas/9ab6c152325ba3742c57a2ce73c8ea08 to your computer and use it in GitHub Desktop.
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