{ context: __dirname, entry: ['./assets/javascripts/App', './scripts/rails_only'], output = { filename: 'client-bundle.js', // '[name].bundle.js' path: '../app/assets/javascripts/generated' }, externals: { jquery: 'var jQuery' }, resolve: { root: [path.join(__dirname, 'scripts'), path.join(__dirname, 'assets/javascripts'), path.join(__dirname, 'assets/stylesheets')], extensions: ['', '.js', '.jsx', '.coffee', '.scss', '.css', '.webpack.js', '.web.js', ‘config.js'] }, module: { loaders: [ { test: /\.coffee$/, exclude: /node_modules/, loader: 'coffee-loader' }, { test: /\.jsx$/, exclude: /node_modules/, loader: ‘babel-loader' }, { test: /\.js$/, exclude: /node_modules/, loader: ‘babel-loader' }, { test: require.resolve('jquery'), loader: ‘expose?jQuery' }, { test: require.resolve('jquery'), loader: ‘expose?$' } ] } };