Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
ariafatah0711 committed Jan 2, 2024
1 parent 80d865b commit 1a32356
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 28 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/script/components/body/header-navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class headerNavbar extends HTMLElement {
overflow: hidden;
text-overflow: ellipsis;
z-index: 5;
display: flex;
align-items: center;
justify-content: center;
}
.navbar a {
font-size: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion src/script/components/body/search-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class SearchForm extends HTMLElement {
<form name="anime-search-form">
<input type="text" id="search-input" autocomplete="off" spellcheck="false" placeholder="search"
maxlength="20" required>
<input type="submit" id="search-submit">
<input type="submit" id="search-submit" value="submit">
</form>
<nav class="navbar-top">
Expand Down
2 changes: 2 additions & 0 deletions src/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ body {
display: flex;
flex-direction: column;
min-height: 100vh;
overflow-y: scroll;
}

@media (max-width:678px) {
body {
padding: 0;
Expand Down
53 changes: 27 additions & 26 deletions webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const { merge } = require('webpack-merge')
const common = require('./webpack.common')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')
const { merge } = require("webpack-merge");
const common = require("./webpack.common");
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const TerserPlugin = require("terser-webpack-plugin");

module.exports = merge(common, {
mode: 'production',
mode: "production",
plugins: [
new MiniCssExtractPlugin({ filename: '[name].[contenthash].css' }),
new CleanWebpackPlugin()
new MiniCssExtractPlugin({ filename: "[name].[contenthash].css" }),
new CleanWebpackPlugin(),
],
module: {
rules: [
Expand All @@ -18,26 +18,27 @@ module.exports = merge(common, {
exclude: /node_modules/,
use: [
{
loader: 'babel-loader',
loader: "babel-loader",
options: {
presets: ['@babel/preset-env']
}
}
]
}
]
presets: ["@babel/preset-env"],
},
},
],
},
],
},
optimization: {
minimize: true,
minimizer: [
new CssMinimizerPlugin(),
(compiler) => {
new TerserPlugin({
terserOptions: {
compress: {}
}
}).apply(compiler)
}
]
}
})
new TerserPlugin({
terserOptions: {
compress: {},
},
}),
],
splitChunks: {
chunks: "all",
},
},
});

0 comments on commit 1a32356

Please sign in to comment.