Browse Source

refactor: code cleanup

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2524/head
Pranav C 3 years ago
parent
commit
8d724e8a15
  1. 12
      packages/nc-gui/nuxt.config.js

12
packages/nc-gui/nuxt.config.js

@ -3,12 +3,6 @@ import MonacoEditorWebpackPlugin from 'monaco-editor-webpack-plugin'
// import HtmlWebpackPlugin from 'html-webpack-plugin';
const fs = require('fs')
const packageJson = JSON.parse(fs.readFileSync('../nc-lib-gui/package.json', 'utf8'))
const version = packageJson.version
.replace(/\.(\d+)$/, (_, v) => {
// if (v === '99') throw new Error('Package version reached 99')
return `.${++v}`
})
export default {
/*
** Nuxt rendering mode
@ -207,12 +201,6 @@ export default {
// config.output.publicPath = "./_nuxt/";
// NOTE: future release version of xc-lib-gui
// const fs = require('fs');
// const packageJson = JSON.parse(fs.readFileSync('../xc-lib-gui/package.json', 'utf8'));
// const version = packageJson.version.replace(/\.(\d+)$/, (_, v) => {
// // if (v === '99') throw new Error('Package version reached 99')
// return `.${++v}`
// });
if (process.env.targetEnv === 'DEV') {
// nightly build
// e.g. 0.84.2-20220220-1250

Loading…
Cancel
Save