Skip to content

Instantly share code, notes, and snippets.

@lemma-san
Created December 9, 2017 11:21
Show Gist options
  • Save lemma-san/8fe641b1347ef63001f784539ee01c0e to your computer and use it in GitHub Desktop.
Save lemma-san/8fe641b1347ef63001f784539ee01c0e to your computer and use it in GitHub Desktop.
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "bundle.js"
},
module: {
loaders: [
{
test: /\.js$/,
loader: "babel-loader",
exclude: /node_modules/
}
]
},
plugins: [new HtmlWebpackPlugin()]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment