From c0c68f7565b9809cee83897d0c5c491593c76634 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 25 Apr 2020 23:26:20 +0200 Subject: [PATCH] fixed case sensitive filenames --- package-lock.json | 6 ++++++ package.json | 1 + src/components/Search.tsx | 2 +- webpack.config.js | 4 +++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 42a36f4..37ea2e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2542,6 +2542,12 @@ } } }, + "case-sensitive-paths-webpack-plugin": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/case-sensitive-paths-webpack-plugin/-/case-sensitive-paths-webpack-plugin-2.3.0.tgz", + "integrity": "sha512-/4YgnZS8y1UXXmC02xD5rRrBEu6T5ub+mQHLNRj0fzTRbgdBYhsNo2V5EqwgqrExjxsjtF/OpAKAMkKsxbD5XQ==", + "dev": true + }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", diff --git a/package.json b/package.json index 92b3e7e..84e3ab3 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@types/react-dom": "^16.9.6", "@typescript-eslint/eslint-plugin": "^2.28.0", "@typescript-eslint/parser": "^2.28.0", + "case-sensitive-paths-webpack-plugin": "^2.3.0", "copy-webpack-plugin": "^5.1.1", "css-loader": "^3.5.2", "eslint": "^6.8.0", diff --git a/src/components/Search.tsx b/src/components/Search.tsx index de05c2d..dddac4e 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import "../style/search.scss"; import Sugestion from "./Sugestion"; -import { Suggestion, SuggestionType } from "../types/suggestion"; +import { Suggestion, SuggestionType } from "../types/Suggestion"; import getGoogleSuggestions from "../functions/getGoogleSuggestions"; interface State { diff --git a/webpack.config.js b/webpack.config.js index 4411761..d805e13 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,6 +4,7 @@ const HtmlWebpackPlugin = require("html-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const CopyWebpackPlugin = require('copy-webpack-plugin'); +const CaseSensitivePathsPlugin = require("case-sensitive-paths-webpack-plugin"); const Webpack = require("webpack"); const path = require("path"); @@ -86,6 +87,7 @@ module.exports = { ]), new Webpack.DefinePlugin({ VERSION: JSON.stringify(version), - }) + }), + new CaseSensitivePathsPlugin() ] };