Fixed styles not showing up (#2799)

* Fixed styles not showing up

* Removed unused css file
This commit is contained in:
Rizwan Mustafa 2022-04-03 18:34:41 +05:00 committed by GitHub
parent 68147b9596
commit c66ab852c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 5 deletions

View file

@ -6,7 +6,6 @@
<title>Email Handler | Monkeytype</title>
<!-- <link rel="stylesheet" href="css/fa.css" /> -->
<link rel="stylesheet" href="css/balloon.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="themes/serika_dark.css" id="currentTheme" />
<link rel="stylesheet" href="" id="funBoxTheme" />
<link id="favicon" rel="shortcut icon" href="images/fav.png" />
@ -18,6 +17,9 @@
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.css[css] %>" />
<% } %>
<meta name="name" content="Monkeytype" />
<meta name="image" content="https://monkeytype.com/mtsocial.png" />
<meta

View file

@ -6,11 +6,13 @@
<title>Privacy Policy | Monkeytype</title>
<!-- <link rel="stylesheet" href="css/fa.css" /> -->
<link rel="stylesheet" href="css/balloon.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="themes/serika_dark.css" id="currentTheme" />
<link rel="stylesheet" href="" id="funBoxTheme" />
<link id="favicon" rel="shortcut icon" href="images/fav.png" />
<link rel="shortcut icon" href="images/fav.png" />
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.css[css] %>" />
<% } %>
<meta name="name" content="Monkeytype" />
<meta name="image" content="https://monkeytype.com/mtsocial.png" />
<meta

View file

@ -6,11 +6,13 @@
<title>Security Policy | Monkeytype</title>
<!-- <link rel="stylesheet" href="css/fa.css" /> -->
<link rel="stylesheet" href="css/balloon.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="themes/serika_dark.css" id="currentTheme" />
<link rel="stylesheet" href="" id="funBoxTheme" />
<link id="favicon" rel="shortcut icon" href="images/fav.png" />
<link rel="shortcut icon" href="images/fav.png" />
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.css[css] %>" />
<% } %>
<meta name="name" content="Monkeytype" />
<meta name="image" content="https://monkeytype.com/mtsocial.png" />
<meta

View file

@ -6,11 +6,13 @@
<title>Terms of Service | Monkeytype</title>
<!-- <link rel="stylesheet" href="css/fa.css" /> -->
<link rel="stylesheet" href="css/balloon.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="themes/serika_dark.css" id="currentTheme" />
<link rel="stylesheet" href="" id="funBoxTheme" />
<link id="favicon" rel="shortcut icon" href="images/fav.png" />
<link rel="shortcut icon" href="images/fav.png" />
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.files.css[css] %>" />
<% } %>
<meta name="name" content="Monkeytype" />
<meta name="image" content="https://monkeytype.com/mtsocial.png" />
<meta

View file

@ -84,7 +84,7 @@ const BASE_CONFIG = {
from: resolve(__dirname, "../static"),
to: "./",
globOptions: {
ignore: ["**/index.html"],
ignore: ["**/*.html"],
},
},
],
@ -94,6 +94,26 @@ const BASE_CONFIG = {
template: resolve(__dirname, "../static/index.html"),
inject: "body",
}),
new HtmlWebpackPlugin({
filename: "terms-of-service.html",
template: resolve(__dirname, "../static/terms-of-service.html"),
inject: false,
}),
new HtmlWebpackPlugin({
filename: "security-policy.html",
template: resolve(__dirname, "../static/security-policy.html"),
inject: false,
}),
new HtmlWebpackPlugin({
filename: "email-handler.html",
template: resolve(__dirname, "../static/email-handler.html"),
inject: false,
}),
new HtmlWebpackPlugin({
filename: "privacy-policy.html",
template: resolve(__dirname, "../static/privacy-policy.html"),
inject: false,
}),
new MiniCssExtractPlugin({
filename: "./css/style.[chunkhash:8].css",
}),