Skip to content

Instantly share code, notes, and snippets.

@scottserok
Created April 20, 2020 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottserok/c88c5f6e302d828605c15cc210058977 to your computer and use it in GitHub Desktop.
Save scottserok/c88c5f6e302d828605c15cc210058977 to your computer and use it in GitHub Desktop.
Webpack for Jekyll
var path = require("path");
module.exports = {
entry: "./src/index.js",
output: {
path: path.join(__dirname,"./assets/js/"),
filename: "bundle.js"
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: "babel-loader",
options: {
presets: ['@babel/preset-env']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment