mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Make the main player object an alias, makes it easier to import
This commit is contained in:
@@ -127,9 +127,6 @@ module.exports = (env, argv) => {
|
||||
isFastRefresh && new ReactRefreshWebpackPlugin(),
|
||||
].filter(Boolean),
|
||||
target: "web",
|
||||
// node: {
|
||||
// fs: "mock",
|
||||
// },
|
||||
entry: entry,
|
||||
output: {
|
||||
path: path.resolve(__dirname, outputDirectory),
|
||||
@@ -190,6 +187,9 @@ module.exports = (env, argv) => {
|
||||
devServer: devServerSettings,
|
||||
resolve: {
|
||||
extensions: [".tsx", ".ts", ".js", ".jsx"],
|
||||
alias: {
|
||||
"@player": path.resolve(__dirname, "src/Player"),
|
||||
},
|
||||
},
|
||||
stats: statsConfig,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user