mirror of
https://github.com/bitwarden/browser
synced 2026-03-02 03:21:19 +00:00
Added knip configuration and fixed filepaths causing errors
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import path from "path";
|
||||
|
||||
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
|
||||
|
||||
// Re-use the OSS CLI webpack config
|
||||
@@ -6,7 +8,7 @@ const webpackConfig = require("../../apps/cli/webpack.config");
|
||||
// Update paths to use the bit-cli entrypoint and tsconfig
|
||||
webpackConfig.entry = { bw: "../../bitwarden_license/bit-cli/src/bw.ts" };
|
||||
webpackConfig.resolve.plugins = [
|
||||
new TsconfigPathsPlugin({ configFile: "../../bitwarden_license/bit-cli/tsconfig.json" }),
|
||||
new TsconfigPathsPlugin({ configFile: path.join(__dirname, "/tsconfig.json") }),
|
||||
];
|
||||
|
||||
module.exports = webpackConfig;
|
||||
|
||||
Reference in New Issue
Block a user