mirror of https://github.com/webpack/webpack.git
26 lines
563 B
JavaScript
26 lines
563 B
JavaScript
|
var webpack = require("../../../../");
|
||
|
var TerserPlugin = require("terser-webpack-plugin");
|
||
|
/** @type {import("../../../../types").Configuration} */
|
||
|
module.exports = {
|
||
|
node: {
|
||
|
__dirname: false,
|
||
|
__filename: false
|
||
|
},
|
||
|
entry: {
|
||
|
bundle0: ["./index.js"],
|
||
|
"some-test": ["./test.js"]
|
||
|
},
|
||
|
output: {
|
||
|
filename: "[name].js"
|
||
|
},
|
||
|
optimization: {
|
||
|
minimizer: [new TerserPlugin()]
|
||
|
},
|
||
|
plugins: [
|
||
|
new webpack.SourceMapDevToolPlugin({
|
||
|
filename: "sourcemaps/[file].map",
|
||
|
append: data => `\n//# sourceMappingURL=http://localhost:50505/[file].map`
|
||
|
})
|
||
|
]
|
||
|
};
|