From 96dc129f24fb1c4cccae8812eaab1b3db3a0dc37 Mon Sep 17 00:00:00 2001 From: Mim Date: Thu, 2 Apr 2026 17:54:22 +0300 Subject: [PATCH] =?UTF-8?q?WEBAPP:=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=20WebPack=20=D0=B4=D0=BB=D1=8F=20=D0=BA=D0=BE?= =?UTF-8?q?=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8=20=D0=B8=D0=B7=D0=BE=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=B8=D0=B7=20CSS?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87=D0=B0=D0=B5=D0=BC?= =?UTF-8?q?=D1=8B=D1=85=20=D0=BA=D0=B0=D0=BA=20=D0=BC=D0=BE=D0=B4=D1=83?= =?UTF-8?q?=D0=BB=D0=B8=20(import)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a3bb4f0..d41944f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -27,7 +27,7 @@ module.exports = { }, output: { path: path.resolve(__dirname, "dist"), - publicPath: "/dist/", + publicPath: "dist/", filename: "p8-panels.js" }, module: { @@ -42,14 +42,14 @@ module.exports = { } } }, + { test: /\.css$/, use: ["style-loader", "css-loader"] }, { test: /\.(jpg|png|svg)$/, - loader: "file-loader", - options: { - name: "[path][name].[hash].[ext]" + type: "asset/resource", + generator: { + filename: "[path][name].[hash].[ext]" } - }, - { test: /\.css$/, use: ["style-loader", "css-loader"] } + } ] } };