28 lines
584 B
JavaScript
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,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|