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"] } + } ] } };