mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
24 lines
632 B
TypeScript
24 lines
632 B
TypeScript
|
import type { Configuration } from "webpack";
|
||
|
import TsconfigPathsPlugin from "tsconfig-paths-webpack-plugin";
|
||
|
|
||
|
import { rules } from "./webpack.rules";
|
||
|
import { plugins } from "./webpack.plugins";
|
||
|
|
||
|
export const mainConfig: Configuration = {
|
||
|
/**
|
||
|
* This is the main entry point for your application, it's the first file
|
||
|
* that runs in the main process.
|
||
|
*/
|
||
|
entry: "./src/index.ts",
|
||
|
devtool: "source-map",
|
||
|
// Put your normal webpack config below here
|
||
|
module: {
|
||
|
rules,
|
||
|
},
|
||
|
plugins,
|
||
|
resolve: {
|
||
|
extensions: [".js", ".ts", ".jsx", ".tsx", ".css", ".json"],
|
||
|
plugins: [new TsconfigPathsPlugin()],
|
||
|
},
|
||
|
};
|