1
0
mirror of https://github.com/coder/code-server.git synced 2024-12-13 02:21:15 +08:00
code-server/packages/logger/webpack.config.js
2019-04-17 17:47:02 -04:00

35 lines
808 B
JavaScript

const path = require("path");
const merge = require("webpack-merge");
module.exports = [
merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
devtool: "none",
mode: "production",
target: "node",
output: {
path: path.join(__dirname, "out"),
filename: "main.js",
libraryTarget: "commonjs",
},
entry: [
"./packages/logger/src/index.ts"
],
}),
merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
devtool: "none",
mode: "production",
target: "node",
output: {
path: path.join(__dirname, "out"),
filename: "extender.js",
libraryTarget: "commonjs",
},
externals: {
"@google-cloud/logging": "commonjs @google-cloud/logging",
},
entry: [
"./packages/logger/src/extender.ts"
],
}),
];