Created
October 11, 2018 00:43
-
-
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
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/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