Created
April 20, 2020 03:07
-
-
Save scottserok/c88c5f6e302d828605c15cc210058977 to your computer and use it in GitHub Desktop.
Webpack for Jekyll
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
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