mirror of https://github.com/webpack/webpack.git
21 lines
438 B
JavaScript
21 lines
438 B
JavaScript
"use strict";
|
|
|
|
const path = require("path");
|
|
const webpack = require("../../../../");
|
|
|
|
/** @type {import("../../../../").Configuration} */
|
|
module.exports = {
|
|
resolve: {
|
|
alias: {
|
|
app: [path.join(__dirname, "src/main"), path.join(__dirname, "src/foo")]
|
|
}
|
|
},
|
|
plugins: [
|
|
new webpack.ContextReplacementPlugin(/main/, (context) => {
|
|
Object.assign(context, {
|
|
resource: ["../override"] // resolved relatively
|
|
});
|
|
})
|
|
]
|
|
};
|