Remove process.x webpack config, add comments

This commit is contained in:
Richard Cox 2023-08-31 11:11:11 +01:00
parent f256a6e2c8
commit 8aef0252fe
4 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,5 @@
// Taken from @nuxt/vue-app/template/App.js
import Vue from 'vue';
import { getMatchedComponentsInstances, getChildrenComponentInstancesUsingFetch, promisify, globalHandleError } from '../utils/nuxt';

View File

@ -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;

View File

@ -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';

View File

@ -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)