30 lines
535 B
JavaScript
30 lines
535 B
JavaScript
var webpack = require("../../../../");
|
|
var TerserPlugin = require("terser-webpack-plugin");
|
|
module.exports = {
|
|
node: {
|
|
__dirname: false,
|
|
__filename: false
|
|
},
|
|
entry: {
|
|
bundle0: ["./index.js"],
|
|
"public/test": ["./test.js"]
|
|
},
|
|
output: {
|
|
filename: "[name].js"
|
|
},
|
|
optimization: {
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
sourceMap: true
|
|
})
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.SourceMapDevToolPlugin({
|
|
filename: "sourcemaps/[file].map",
|
|
publicPath: "https://10.10.10.10/project/",
|
|
fileContext: "public"
|
|
})
|
|
]
|
|
};
|