24 lines
400 B
JavaScript
24 lines
400 B
JavaScript
var path = require("path");
|
|
var webpack = require("../../../../");
|
|
|
|
/** @type {import("../../../../").Configuration} */
|
|
module.exports = {
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /a\.js$/,
|
|
use: ["./queryloader?lions=roar"]
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.ContextReplacementPlugin(
|
|
/context-replacement.d$/,
|
|
path.resolve(__dirname, "modules?cats=meow"),
|
|
{
|
|
a: "./a"
|
|
}
|
|
)
|
|
]
|
|
};
|