mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 09:52:04 +00:00
add minified vue to production (#3183)
Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
parent
a4fab3ce8a
commit
a5c4508578
@ -14,6 +14,9 @@ const gitRevision = require('child_process')
|
|||||||
const gitBranch = require('child_process')
|
const gitBranch = require('child_process')
|
||||||
.execSync('git rev-parse --abbrev-ref HEAD')
|
.execSync('git rev-parse --abbrev-ref HEAD')
|
||||||
.toString().trim();
|
.toString().trim();
|
||||||
|
const vueFile = devMode ?
|
||||||
|
path.join(__dirname, "node_modules/vue/dist/vue.js") :
|
||||||
|
path.join(__dirname, "node_modules/vue/dist/vue.min.js");
|
||||||
|
|
||||||
const webpackConfig = {
|
const webpackConfig = {
|
||||||
mode: devMode ? 'development' : 'production',
|
mode: devMode ? 'development' : 'production',
|
||||||
@ -37,7 +40,7 @@ const webpackConfig = {
|
|||||||
"csv": "comma-separated-values",
|
"csv": "comma-separated-values",
|
||||||
"EventEmitter": "eventemitter3",
|
"EventEmitter": "eventemitter3",
|
||||||
"bourbon": "bourbon.scss",
|
"bourbon": "bourbon.scss",
|
||||||
"vue": path.join(__dirname, "node_modules/vue/dist/vue.js"),
|
"vue": vueFile,
|
||||||
"d3-scale": path.join(__dirname, "node_modules/d3-scale/build/d3-scale.min.js"),
|
"d3-scale": path.join(__dirname, "node_modules/d3-scale/build/d3-scale.min.js"),
|
||||||
"printj": path.join(__dirname, "node_modules/printj/dist/printj.min.js"),
|
"printj": path.join(__dirname, "node_modules/printj/dist/printj.min.js"),
|
||||||
"styles": path.join(__dirname, "src/styles"),
|
"styles": path.join(__dirname, "src/styles"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user