Last active
March 27, 2016 01:34
-
-
Save StevenXL/0e7e3ba47933b2a0b2d0 to your computer and use it in GitHub Desktop.
Complete Webpack Configuration File
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
| 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