mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
Move main bundle output to ./dist subfolder
Excludes the index.html so that the github page can still work as is. This will declutter the root of the repo a fair bit.
This commit is contained in:
@@ -63,6 +63,7 @@ module.exports = (env, argv) => {
|
||||
new HtmlWebpackPlugin({
|
||||
title: "Bitburner",
|
||||
template: "src/index.html",
|
||||
filename: "../index.html",
|
||||
favicon: "favicon.ico",
|
||||
googleAnalytics: {
|
||||
trackingId: "UA-100157497-1",
|
||||
@@ -136,7 +137,7 @@ module.exports = (env, argv) => {
|
||||
// },
|
||||
entry: entry,
|
||||
output: {
|
||||
path: path.resolve(__dirname, "./"),
|
||||
path: path.resolve(__dirname, outputDirectory),
|
||||
filename: "[name].bundle.js",
|
||||
},
|
||||
module: {
|
||||
@@ -161,7 +162,7 @@ module.exports = (env, argv) => {
|
||||
loader: "file-loader",
|
||||
options: {
|
||||
name: "[contenthash].[ext]",
|
||||
outputPath: "dist/images",
|
||||
outputPath: "images",
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -184,7 +185,7 @@ module.exports = (env, argv) => {
|
||||
cacheGroups: {
|
||||
vendor: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
name: `${outputDirectory}/vendor`,
|
||||
name: `vendor`,
|
||||
chunks: "all",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user