refactor(static): refactor weather-icons lib
This commit is contained in:
@@ -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]",
|
||||
}
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user