mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(webpack): add Configuration type
-> allows for intellisense in e.g. VSCode
This commit is contained in:
parent
f672747cfc
commit
2031029076
@ -1,9 +1,10 @@
|
||||
import { fileURLToPath } from "url";
|
||||
import path from "path";
|
||||
import assetPath from "./src/services/asset_path.js";
|
||||
import type { Configuration } from "webpack";
|
||||
|
||||
const rootDir = path.dirname(fileURLToPath(import.meta.url));
|
||||
export default {
|
||||
const config: Configuration = {
|
||||
mode: "production",
|
||||
entry: {
|
||||
setup: "./src/public/app/setup.js",
|
||||
@ -42,3 +43,5 @@ export default {
|
||||
devtool: "source-map",
|
||||
target: "electron-renderer"
|
||||
};
|
||||
|
||||
export default config;
|
Loading…
x
Reference in New Issue
Block a user