refactor(static): refactor weather-icons lib

This commit is contained in:
2026-07-05 20:45:19 +03:00
parent d21e31ca35
commit d1bdac66c0
46 changed files with 69 additions and 133 deletions

View File

@@ -5,9 +5,6 @@ import { fileURLToPath } from "url";
import webpack from "webpack";
import packageInfo from "./package.json" with { type: "json" };
// in case you run into any TypeScript error when configuring `devServer`
//import "webpack-dev-server";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
@@ -49,9 +46,8 @@ const config: webpack.Configuration = {
new CopyPlugin({
patterns: [
{
from: "./src/**/*.svg",
//to: "[path][name].[contenthash][ext]",
to: "svg/[name][ext]",
from: "./src/lib/weather-icons/icons/*.svg",
to: "weather-icons/icons/[name][ext]",
},
{
from: "./node_modules/bootstrap-icons/icons/*.svg",
@@ -60,7 +56,7 @@ const config: webpack.Configuration = {
{
from: "./node_modules/flag-icons/flags/1x1/*.svg",
to: "flag-icons/flags/1x1/[name][ext]",
}
},
],
}),
],