Welcome to mirror list, hosted at ThFree Co, Russian Federation.

webpack.prod.js - github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7ecd5284e66464eb258ee057118825d98ebd4c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* global __dirname module */

/*
This configuration should be used for production installs.
It is the default webpack configuration.
*/
const { merge } = require('webpack-merge');
const common = require('./webpack.common');

const path = require('path');
const webpack = require('webpack');

module.exports = merge(common, {
    mode: 'production',
    resolve: {
        alias: {
            "vue": path.join(__dirname, "node_modules/vue/dist/vue.min.js")
        }
    },
    plugins: [
        new webpack.DefinePlugin({
            __OPENMCT_ROOT_RELATIVE__: '""'
        })
    ],
    devtool: 'eval-source-map'
});