Skip to content

Instantly share code, notes, and snippets.

@louisscruz
Created October 24, 2016 03:31
Show Gist options
  • Save louisscruz/31e8bdc04affd9d3ea81ee89f62e860c to your computer and use it in GitHub Desktop.
Save louisscruz/31e8bdc04affd9d3ea81ee89f62e860c to your computer and use it in GitHub Desktop.
const path = require("path");
module.exports = {
context: __dirname,
entry: "./frontend/synthesizer.jsx",
output: {
path: path.join(__dirname),
filename: "bundle.js",
publicPath: "/"
},
module: {
preLoaders: [
{
test: /\.jsx?/,
exclude: /node_modules/,
loader: 'jsxhint-loader'
}, {
test: /\.js?/,
exclude: /node_modules/,
loader: 'jshint-loader'
}
],
loaders: [
{
test: [/\.jsx?$/, /\.js?$/],
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
}
]
},
jshint: {
esversion: 6
},
devtool: 'source-maps',
resolve: {
root: __dirname,
extensions: ["", ".js", ".jsx" ]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment