homegrade_blocks_production/webpack.config.js
Antoine M d85cf47ac4
All checks were successful
continuous-integration/drone/push Build is passing
FIX Passing the missing attributes in the deprecation file and rebuilding
2025-05-26 14:45:03 +02:00

28 lines
584 B
JavaScript

const defaultConfig = require("@wordpress/scripts/config/webpack.config");
const path = require("path");
module.exports = {
...defaultConfig,
entry: {
index: path.resolve(process.cwd(), "src/", "index.js"),
tooltipFront: path.resolve(process.cwd(), "src/format-types/tooltip", "tooltip-front.js"),
},
module: {
...defaultConfig.module,
rules: [
...defaultConfig.module.rules,
{
test: /\.(png|jpg|gif|svg)$/i,
use: [
{
loader: "url-loader",
options: {
limit: 8192,
},
},
],
},
],
},
};