mirror of
https://github.com/PHIDIAS0303/ClusterChatSync.git
synced 2026-11-11 15:14:52 +09:00
29 lines
711 B
JavaScript
29 lines
711 B
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 = {}, argv = {}) => merge(common(env, argv), {
|
|
context: __dirname,
|
|
entry: './web/index.tsx',
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist', 'web'),
|
|
},
|
|
plugins: [
|
|
new webpack.container.ModuleFederationPlugin({
|
|
name: 'ClusterChatSync',
|
|
library: {type: 'var', name: 'plugin_ClusterChatSync'},
|
|
exposes: {
|
|
'./': './index.ts',
|
|
'./package.json': './package.json'
|
|
},
|
|
shared: {
|
|
'@clusterio/lib': {import: false},
|
|
'@clusterio/web_ui': {import: false},
|
|
},
|
|
}),
|
|
],
|
|
});
|