Skip to content

Instantly share code, notes, and snippets.

@Mohammed-El-Nabulsi
Last active April 15, 2016 22:14
Show Gist options
  • Save Mohammed-El-Nabulsi/0bcc9c6c601dd85bfa3e005c595ff53f to your computer and use it in GitHub Desktop.
Save Mohammed-El-Nabulsi/0bcc9c6c601dd85bfa3e005c595ff53f to your computer and use it in GitHub Desktop.
var path = require('path');
module.exports = {
entry: ['./main.jsx'],
output: {
path: path.join(__dirname, 'wwwroot'),
filename: '[name].bundle.js',
},
watch: true,
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015', 'stage-0', 'react'],
},
}, {
test: /\.(png|jpg|svg)$/,
loader: 'file'
}, {
test: /\.(ttf|eot|svg|woff|woff2)$/,
loader: 'file'
},
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment