]>
Commit | Line | Data |
---|---|---|
eb39fafa DC |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: Dominik Csapak <d.csapak@proxmox.com> | |
3 | Date: Thu, 2 Apr 2020 07:10:18 +0000 | |
4 | Subject: [PATCH] adapt webpack config | |
5 | ||
eb39fafa DC |
6 | adds 'cli-engine' to build (we use it in our wrapper) |
7 | and target 'node' since we will use it on the cli | |
8 | ||
9 | Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> | |
10 | --- | |
4b0098f6 DC |
11 | webpack.config.js | 3 ++- |
12 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
eb39fafa DC |
13 | |
14 | diff --git a/webpack.config.js b/webpack.config.js | |
4b0098f6 | 15 | index a22c99b..9209159 100644 |
eb39fafa DC |
16 | --- a/webpack.config.js |
17 | +++ b/webpack.config.js | |
4b0098f6 DC |
18 | @@ -4,8 +4,9 @@ const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); |
19 | /** @type {import("webpack").Configuration} */ | |
eb39fafa DC |
20 | module.exports = { |
21 | mode: "none", | |
22 | + target: "node", | |
23 | entry: { | |
24 | - eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js"] | |
7a730cb6 | 25 | + eslint: ["core-js/stable", "regenerator-runtime/runtime", "./lib/linter/linter.js", "./lib/eslint/index.js"] |
eb39fafa DC |
26 | }, |
27 | output: { | |
28 | filename: "[name].js", | |
eb39fafa DC |
29 | -- |
30 | 2.20.1 |