Last active
October 7, 2018 14:49
-
-
Save lomse/a23236a04978d1dab71b32adfa992129 to your computer and use it in GitHub Desktop.
webpack.config.js - react-todo-app
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') | |
const config = { | |
context: __dirname, | |
entry: './src/App.jsx', | |
devtool: 'cheap-eval-source-map', | |
output: { | |
path: path.join(__dirname, 'public/js'), | |
filename: 'bundle.js' | |
}, | |
resolve: { | |
extensions: ['.jsx', '.js', '.json'] | |
}, | |
module: { | |
rules: [ | |
{ test: /\.jsx?$/, loader: 'babel-loader' } | |
] | |
}, | |
mode: "development" | |
} | |
module.exports = config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment