Files
factorio-clusterio/plugins/research_sync
Hornwitser 8a0c1e8a4b Use single entrypoint for lib in web interface
In order to import a path inside packages/lib/ in the webpack shared
module environment it has to be declared as shared in both the web_ui
webpack config and the plugin's webpack config.  This is rather error
prone and easy to miss.  Move the burden of specifying which entrypoints
are valid in lib to lib itself by changing all imports in the web
interface code to import from @clusterio/lib instead sub paths.

For web code this means imports is done like this from now on:

import { libConfig, libLink } from "@clusterio/lib";

For info.js which has to be loadable by both Node.js and web code the
imports are done as follows:

const { libConfig, libLink } = require("@clusterio/lib");

While the Node.js only code can either continue to import sub paths
directly or use the info.js style.
2021-08-17 01:42:45 +02:00
..
2020-06-17 20:53:18 +02:00
2021-05-15 23:22:37 +02:00
2021-06-28 16:29:34 +02:00

Clusterio Research Sync Plugin

Plugin synchronizing research progress between instances and the cluster.

Installation

Run the following commands in the folder Clusterio is installed to:

npm install @clusterio/plugin-research_sync
npx clusteriomaster plugin add @clusterio/plugin-research_sync

Substitute clusteriomaster with clusterioslave or clusterioctl if this a dedicate slave or ctl installation respectively.