installed react-router-dom

This commit is contained in:
andres alcocer
2020-07-10 12:42:17 -04:00
parent 0c36c7ee10
commit aaa168147f
10 changed files with 2928 additions and 2248 deletions

View File

@@ -4,6 +4,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const dotenv = require('dotenv');
const webpack = require('webpack');
var path = require('path');
module.exports = () => {
// call dotenv and it will return an Object with a parsed key
@@ -20,7 +21,9 @@ module.exports = () => {
return {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/',
},
module: {
rules: [
@@ -66,6 +69,9 @@ module.exports = () => {
},
],
},
devServer: {
historyApiFallback: true,
},
node: {
fs: 'empty',
},