Last active
April 15, 2016 22:14
-
-
Save Mohammed-El-Nabulsi/0bcc9c6c601dd85bfa3e005c595ff53f to your computer and use it in GitHub Desktop.
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
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