Skip to content

Instantly share code, notes, and snippets.

@devrchancay
Created September 1, 2017 06:26
Show Gist options
  • Select an option

  • Save devrchancay/8db0a3c220d65d050911c35f345fb54c to your computer and use it in GitHub Desktop.

Select an option

Save devrchancay/8db0a3c220d65d050911c35f345fb54c to your computer and use it in GitHub Desktop.
var webpack = require("webpack");
var path = require("path");
module.exports = {
entry: path.join(__dirname, "src"),
output: {
path: path.join(__dirname, "dist"),
filename: "elperverso_app.js"
},
module: {
loaders: [
{
test: path.join(__dirname, "src"),
exclude: /node_modules/,
loader: "babel-loader"
}
]
},
resolve: {
modules: [path.resolve("./src"), path.resolve("./node_modules")]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment