Skip to content

Instantly share code, notes, and snippets.

@lomse
Last active October 7, 2018 14:49
Show Gist options
  • Save lomse/a23236a04978d1dab71b32adfa992129 to your computer and use it in GitHub Desktop.
Save lomse/a23236a04978d1dab71b32adfa992129 to your computer and use it in GitHub Desktop.
webpack.config.js - react-todo-app
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