mirror of
https://github.com/nasa/openmct.git
synced 2024-12-25 07:41:06 +00:00
4885c816dc
* Replacing all instances of the new Vue() component creation pattern * In Vue 3, components cannot be created on the fly and mounted off-DOM. The suggested fix from Vue is to use createApp, but in the context of Open MCT this means dozens of Vue apps being created and destroyed at any given moment. Instead, we have used a community hack for creating individual components. * beforeDestroy() -> beforeUnmount() * destroyed() -> unmounted() * The addition of deep: true option on Array listeners is now required to detect Array changes * Open MCT is now mounted on a child div instead of directly on document.body --------- Co-authored-by: Scott Bell <scott@traclabs.com> Co-authored-by: Andrew Henry <akhenry@gmail.com> Co-authored-by: John Hill <john.c.hill@nasa.gov>
23 lines
524 B
JavaScript
23 lines
524 B
JavaScript
/* global __dirname module */
|
|
|
|
/*
|
|
This configuration should be used for production installs.
|
|
It is the default webpack configuration.
|
|
*/
|
|
const path = require('path');
|
|
const webpack = require('webpack');
|
|
const { merge } = require('webpack-merge');
|
|
|
|
const common = require('./webpack.common');
|
|
const projectRootDir = path.resolve(__dirname, '..');
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
__OPENMCT_ROOT_RELATIVE__: '""'
|
|
})
|
|
],
|
|
devtool: 'source-map'
|
|
});
|