style: 🚨 linter go brrrr
This commit is contained in:
parent
9df1999391
commit
48d2a6f2f8
13 changed files with 73 additions and 79 deletions
|
@ -3,7 +3,7 @@ const path = require("path");
|
|||
module.exports = {
|
||||
publicPath: "",
|
||||
css: {
|
||||
sourceMap: process.env.NODE_ENV !== "production"
|
||||
sourceMap: process.env.NODE_ENV !== "production",
|
||||
},
|
||||
configureWebpack: {
|
||||
resolve: {
|
||||
|
@ -13,36 +13,37 @@ module.exports = {
|
|||
"@scss": path.resolve(__dirname, "src/scss/"),
|
||||
"@data": path.resolve(__dirname, "src/data/"),
|
||||
"@mixins": path.resolve(__dirname, "src/mixins/"),
|
||||
"@components": path.resolve(__dirname, "src/components/")
|
||||
}
|
||||
}
|
||||
"@components": path.resolve(__dirname, "src/components/"),
|
||||
},
|
||||
},
|
||||
},
|
||||
chainWebpack: config => {
|
||||
config.plugin("html").tap(args => {
|
||||
chainWebpack: (config) => {
|
||||
config.plugin("html").tap((args) => {
|
||||
const meta = {
|
||||
title: "Sebin Nyshkim - Reference Page",
|
||||
desc: "The official reference page for Sebin Nyshkim with picture references and in-depth character descriptions",
|
||||
desc:
|
||||
"The official reference page for Sebin Nyshkim with picture references and in-depth character descriptions",
|
||||
type: "website",
|
||||
url: "https://ref.sebin-nyshkim.net",
|
||||
favicon: "favicon.png",
|
||||
preview: "preview.jpg",
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
creator: "@SebinNyshkim"
|
||||
}
|
||||
creator: "@SebinNyshkim",
|
||||
},
|
||||
};
|
||||
|
||||
const links = {
|
||||
icon: {
|
||||
rel: "icon",
|
||||
href: meta.favicon,
|
||||
type: "image/png"
|
||||
type: "image/png",
|
||||
},
|
||||
favicon: {
|
||||
rel: "favicon",
|
||||
href: meta.favicon,
|
||||
type: "image/png"
|
||||
}
|
||||
type: "image/png",
|
||||
},
|
||||
};
|
||||
|
||||
args[0].title = meta.title;
|
||||
|
@ -57,7 +58,7 @@ module.exports = {
|
|||
"og:type": meta.type,
|
||||
"og:url": meta.url,
|
||||
"og:image": `${meta.url}/${meta.preview}`,
|
||||
"og:description": meta.desc
|
||||
"og:description": meta.desc,
|
||||
};
|
||||
|
||||
return args;
|
||||
|
@ -68,21 +69,21 @@ module.exports = {
|
|||
.test(/\.(png|jpe?g|gif|webp|svg)(\?.*)?$/i)
|
||||
.use("image-webpack-loader")
|
||||
.loader("image-webpack-loader")
|
||||
.tap(options => {
|
||||
.tap((options) => {
|
||||
const newOpts = {
|
||||
mozjpeg: {
|
||||
progressive: true,
|
||||
quality: 75
|
||||
quality: 75,
|
||||
},
|
||||
pngquant: {
|
||||
quality: [0.65, 0.9],
|
||||
speed: 4
|
||||
speed: 4,
|
||||
},
|
||||
gifsicle: {
|
||||
interlaced: false
|
||||
}
|
||||
interlaced: false,
|
||||
},
|
||||
};
|
||||
return { ...options, ...newOpts };
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue