Created
February 21, 2017 17:13
-
-
Save allizad/bfa4d60d19b20ed2d3c966e0c47c536f to your computer and use it in GitHub Desktop.
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 = { | |
// 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