Skip to content

Instantly share code, notes, and snippets.

@StevenXL
Last active March 27, 2016 01:34
Show Gist options
  • Select an option

  • Save StevenXL/0e7e3ba47933b2a0b2d0 to your computer and use it in GitHub Desktop.

Select an option

Save StevenXL/0e7e3ba47933b2a0b2d0 to your computer and use it in GitHub Desktop.
Complete Webpack Configuration File
module.exports = {
entry: "./dev/app.js",
output: {
path: __dirname + "/public/js",
filename: "build.js"
},
module: {
preLoaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: "eslint-loader" }
],
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }
]
},
eslint: {
emitError: true,
emitWarning: true,
failOnError: true,
failOnWarning: true
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment