Last active
July 6, 2018 01:52
-
-
Save jhurtadojerves/d701d75df14d56c9c588b267b7dab201 to your computer and use it in GitHub Desktop.
Webpack basic configuration from react.js
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
const path = require('path') | |
module.exports = { | |
mode: 'production', | |
entry: { | |
"home": path.resolve(__dirname, 'src/entries/home.js'), | |
}, | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: 'js/[name].js', | |
publicPath: 'dist/', | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /(node_modules)/, | |
loader: 'babel-loader' | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment