From ff87c1b66bd41f85d7cd079ebd6b412d2b533c2b Mon Sep 17 00:00:00 2001 From: Alessio Michelini Date: Wed, 6 Mar 2019 11:26:02 +0000 Subject: [PATCH 1/2] Fixed issue introduced by previous changes --- package.json | 2 +- webpack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 292d322..01bda06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-boilerplate", - "version": "0.2.0", + "version": "0.2.1", "description": "Simple boilerplate for React with Jest support", "main": "index.js", "scripts": { diff --git a/webpack.config.js b/webpack.config.js index 06f0dc0..3398fde 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,5 @@ const path = require("path"); +const webpack = require('webpack'); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const CleanWebpackPlugin = require("clean-webpack-plugin"); From 7dbd81133a3758870f41826dd6b8cb66b6294284 Mon Sep 17 00:00:00 2001 From: Alessio Michelini Date: Wed, 6 Mar 2019 11:27:02 +0000 Subject: [PATCH 2/2] Fixed issue with devServer fallback path --- webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 3398fde..c4eec4c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -31,7 +31,7 @@ module.exports = { devServer: { historyApiFallback: true, historyApiFallback: { - index: "/main.html" + index: "/index.html" } }, watchOptions: {