Created
October 24, 2016 03:31
-
-
Save louisscruz/31e8bdc04affd9d3ea81ee89f62e860c to your computer and use it in GitHub Desktop.
This file contains 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
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