mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Reimplement the functionality of the Storage page which shows which items are stored in the shared subspace on the master server.
39 lines
1.0 KiB
JavaScript
39 lines
1.0 KiB
JavaScript
"use strict";
|
|
const path = require("path");
|
|
const webpack = require("webpack");
|
|
const { merge } = require("webpack-merge");
|
|
|
|
const common = require("@clusterio/web_ui/webpack.common");
|
|
|
|
module.exports = (env = {}) => merge(common(env), {
|
|
context: __dirname,
|
|
entry: "./web/index.jsx",
|
|
output: {
|
|
publicPath: "auto",
|
|
filename: "bundle.js",
|
|
path: path.resolve(__dirname, "dist", "web"),
|
|
},
|
|
plugins: [
|
|
new webpack.container.ModuleFederationPlugin({
|
|
name: "subspace_storage",
|
|
library: { type: "var", name: "plugin_subspace_storage" },
|
|
filename: "remoteEntry.js",
|
|
exposes: {
|
|
"./info": "./info.js",
|
|
"./package.json": "./package.json",
|
|
"./web": "./web/index.jsx",
|
|
},
|
|
shared: {
|
|
"@clusterio/lib/config": { import: false },
|
|
"@clusterio/lib/link": { import: false },
|
|
"@clusterio/lib/plugin": { import: false },
|
|
"@clusterio/lib/users": { import: false },
|
|
"@clusterio/web_ui": { import: false },
|
|
"antd": { import: false },
|
|
"react": { import: false },
|
|
"react-dom": { import: false },
|
|
},
|
|
}),
|
|
],
|
|
});
|