add tsconfigpathsplugin to resolve

This commit is contained in:
Alec Armbruster 2023-06-20 15:48:42 -04:00
parent 697df71b2d
commit fe8368548b
No known key found for this signature in database
GPG key ID: 52BC7C84E960FD1B
4 changed files with 36 additions and 2 deletions

View file

@ -5,6 +5,7 @@ const CopyPlugin = require("copy-webpack-plugin");
const RunNodeWebpackPlugin = require("run-node-webpack-plugin");
const merge = require("lodash/merge");
const { ServiceWorkerPlugin } = require("service-worker-webpack");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const banner = `
hash:[contentHash], chunkhash:[chunkhash], name:[name], filebase:[base], query:[query], file:[file]
Source code: https://github.com/LemmyNet/lemmy-ui
@ -19,6 +20,7 @@ const base = {
hashFunction: "xxhash64",
},
resolve: {
plugins: [new TsconfigPathsPlugin()],
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
performance: {