mirror of https://github.com/rancher/dashboard.git
Remove process.x webpack config, add comments
This commit is contained in:
parent
f256a6e2c8
commit
8aef0252fe
|
|
@ -1,3 +1,5 @@
|
|||
// Taken from @nuxt/vue-app/template/App.js
|
||||
|
||||
import Vue from 'vue';
|
||||
|
||||
import { getMatchedComponentsInstances, getChildrenComponentInstancesUsingFetch, promisify, globalHandleError } from '../utils/nuxt';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// Taken from @nuxt/vue-app/template/client.js
|
||||
|
||||
import Vue from 'vue';
|
||||
import fetch from 'unfetch';
|
||||
import middleware from '../config/middleware.js';
|
||||
|
|
@ -21,7 +23,7 @@ import { createApp, NuxtError } from './index.js';
|
|||
import fetchMixin from '../mixins/fetch.client';
|
||||
import NuxtLink from '../components/nuxt/nuxt-link.client.js'; // should be included after ./index.js
|
||||
|
||||
// Mimic old @nuxt/node_modules/vue-app/template/client.js
|
||||
// Mimic old @nuxt/vue-app/template/client.js
|
||||
const isDev = process.env.dev;
|
||||
const debug = isDev;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// Taken from @nuxt/vue-app/template/index.js
|
||||
|
||||
import Vue from 'vue';
|
||||
import Meta from 'vue-meta';
|
||||
import ClientOnly from 'vue-client-only';
|
||||
|
|
|
|||
|
|
@ -410,11 +410,6 @@ module.exports = function(dir, _appConfig) {
|
|||
dashboardVersion
|
||||
}),
|
||||
|
||||
// Set some process properties from @nuxt/webpack/dist/webpack.js that are still in use
|
||||
'process.mode': JSON.stringify(dev ? 'development' : 'production'),
|
||||
'process.dev': dev,
|
||||
'process.static': false,
|
||||
'process.target': JSON.stringify('server'),
|
||||
}));
|
||||
|
||||
// The static assets need to be in the built assets directory in order to get served (primarily the favicon)
|
||||
|
|
|
|||
Loading…
Reference in New Issue