1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

Fix typos in Webpack config and Makefile

This commit is contained in:
Harrison Healey 2022-09-07 15:03:14 -04:00
parent 9c16d94854
commit 32f2d403e6
3 changed files with 13 additions and 2 deletions

View File

@ -186,6 +186,7 @@ watch-plugin: modd-precheck ## Run and upload the plugin to a development server
live-watch-plugin: modd-precheck ## Run and update locally the plugin in the development server
cd mattermost-plugin; make live-watch
.PHONY: watch-product
watch-product: ## Run the product as something the Mattermost web app will watch for
cd mattermost-plugin; make watch-product

View File

@ -175,7 +175,7 @@ endif
deploy-from-watch: bundle
./build/bin/pluginctl deploy $(PLUGIN_ID) dist/$(BUNDLE_NAME)
.PHONE: watch-product
.PHONY: watch-product
watch-product: apply
cd webapp && npm run start:product

View File

@ -128,6 +128,7 @@ const config = {
};
if (TARGET_IS_PRODUCT) {
// Set up module federation
function makeSingletonSharedModules(packageNames) {
const sharedObject = {};
@ -173,7 +174,16 @@ if (TARGET_IS_PRODUCT) {
} else {
config.resolve.alias['react-intl'] = path.resolve(__dirname, '../../webapp/node_modules/react-intl/');
config.outputs = {
config.externals = {
react: 'React',
redux: 'Redux',
'react-redux': 'ReactRedux',
'mm-react-router-dom': 'ReactRouterDom',
'prop-types': 'PropTypes',
'react-bootstrap': 'ReactBootstrap',
};
config.output = {
devtoolNamespace: PLUGIN_ID,
path: path.join(__dirname, '/dist'),
publicPath: '/',