Skip to content

Instantly share code, notes, and snippets.

@lomse
Created October 11, 2018 00:43
Show Gist options
  • Save lomse/dc18058c8c3623cfd94cdd6eced69b39 to your computer and use it in GitHub Desktop.
Save lomse/dc18058c8c3623cfd94cdd6eced69b39 to your computer and use it in GitHub Desktop.
Entry point to point to index.jsx file instead of the App.jsx file
const path = require('path')
const config = {
context: __dirname,
entry: './src/index.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