Skip to content

Instantly share code, notes, and snippets.

@allizad
Created February 21, 2017 17:13
Show Gist options
  • Save allizad/bfa4d60d19b20ed2d3c966e0c47c536f to your computer and use it in GitHub Desktop.
Save allizad/bfa4d60d19b20ed2d3c966e0c47c536f to your computer and use it in GitHub Desktop.
module.exports = {
// webpack folder's entry js - excluded from jekll's build process, since the compiled version is what we'll use in the DOM.
entry: "./webpack/entry.js",
output: {
// put the generated file in the assets folder so jekyll will grab it.
path: './javascript/',
filename: "bundle.js"
},
// loaders for different libraries and, eventually, filetypes
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['react', 'es2015']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment