Compare commits
No commits in common. "master" and "develop" have entirely different histories.
6
package-lock.json
generated
6
package-lock.json
generated
@ -2542,12 +2542,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"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",
|
||||
|
@ -20,7 +20,6 @@
|
||||
"@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",
|
||||
|
@ -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 {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as React from "react";
|
||||
|
||||
import "../style/suggestion.scss";
|
||||
import { Suggestion } from "../types/Suggestion";
|
||||
import { Suggestion } from "../types/suggestion";
|
||||
|
||||
interface Props {
|
||||
suggestion: Suggestion;
|
||||
|
@ -4,22 +4,17 @@
|
||||
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");
|
||||
|
||||
const DEVELOPMENT = process.env.NODE_ENV === "development";
|
||||
|
||||
let version = process.env.DRONE_TAG;
|
||||
|
||||
if(!version){
|
||||
version = require('child_process')
|
||||
.execSync("git describe --abbrev=0")
|
||||
.toString();
|
||||
}
|
||||
|
||||
version = version.replace("v", "").trim();
|
||||
const version = require('child_process')
|
||||
.execSync("git describe --abbrev=0")
|
||||
.toString()
|
||||
.replace("v", "")
|
||||
.trim();
|
||||
|
||||
module.exports = {
|
||||
context: path.join(__dirname, "src"),
|
||||
@ -87,7 +82,6 @@ module.exports = {
|
||||
]),
|
||||
new Webpack.DefinePlugin({
|
||||
VERSION: JSON.stringify(version),
|
||||
}),
|
||||
new CaseSensitivePathsPlugin()
|
||||
})
|
||||
]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user