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 dev = process.env.NODE_ENV !== 'production' // Loads the environment that you're running on | |
| const path = require('path'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const {CleanWebpackPlugin} = require('clean-webpack-plugin'); | |
| module.exports = { | |
| mode:'development', | |
| devtool: dev ? 'inline-source-map': 'eval-source-map', // Maps the line numbers of jsx files to the ones in the bundle | |
| entry: path.join( __dirname, 'client/src/index.jsx'), | |
| module: { // All modules to be used in the app |
OlderNewer