webpack/test/configCases/rule-set/custom/webpack.config.js

20 lines
341 B
JavaScript

module.exports = {
module: {
rules: [
{
test: /[ab]\.js$/,
use: function (data) {
return {
loader: "./loader",
options: {
resource: data.resource.replace(/^.*[\\/]/g, ""),
resourceQuery: data.resourceQuery,
issuer: data.issuer.replace(/^.*[\\/]/g, "")
}
};
}
}
]
}
};