From 76895231ff92fc345b377d151659b0762b3f138c Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 9 Aug 2022 15:34:58 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/index.js | 4 +-- config/dev.env.js | 8 ----- config/index.js | 77 ---------------------------------------------- config/prod.env.js | 5 --- 4 files changed, 2 insertions(+), 92 deletions(-) delete mode 100644 config/dev.env.js delete mode 100644 config/index.js delete mode 100644 config/prod.env.js diff --git a/build/index.js b/build/index.js index 0c57de2..b7b6204 100644 --- a/build/index.js +++ b/build/index.js @@ -12,8 +12,8 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) { const port = 9526 const publicPath = config.publicPath - var connect = require('connect') - var serveStatic = require('serve-static') + let connect = require('connect') + let serveStatic = require('serve-static') const app = connect() app.use( diff --git a/config/dev.env.js b/config/dev.env.js deleted file mode 100644 index 26bae7d..0000000 --- a/config/dev.env.js +++ /dev/null @@ -1,8 +0,0 @@ -// 'use strict' -// const merge = require('webpack-merge') -// const prodEnv = require('./prod.env') -// -// module.exports = merge(prodEnv, { -// NODE_ENV: '"development"', -// BASE_API: '"http://localhost:8088"' -// }) diff --git a/config/index.js b/config/index.js deleted file mode 100644 index 8d148a7..0000000 --- a/config/index.js +++ /dev/null @@ -1,77 +0,0 @@ -// 'use strict' -// // Template version: 1.3.1 -// // see http://vuejs-templates.github.io/webpack for documentation. -// -// const path = require('path') -// module.exports = { -// dev: { -// -// // Paths -// assetsSubDirectory: 'static', -// assetsPublicPath: '/', -// proxyTable: { -// '/api': { -// target: 'http://localhost:8088', -// // target: 'http://www.twioes.com:18888', -// changeOrigin: true, -// pathRewrite: { -// '^/api': '' -// } -// } -// -// }, -// -// // Various Dev Server settings -// host: 'localhost', // can be overwritten by process.env.HOST -// port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined -// autoOpenBrowser: false, -// errorOverlay: true, -// notifyOnErrors: true, -// poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- -// -// /** -// * Source Maps -// */ -// -// // https://webpack.js.org/configuration/devtool/#development -// devtool: 'cheap-module-eval-source-map', -// -// // If you have problems debugging vue-files in devtools, -// // set this to false - it *may* help -// // https://vue-loader.vuejs.org/en/options.html#cachebusting -// cacheBusting: true, -// -// cssSourceMap: true -// }, -// -// build: { -// // Template for index.html -// index: path.resolve(__dirname, '../dist/index.html'), -// -// // Paths -// assetsRoot: path.resolve(__dirname, '../dist'), -// assetsSubDirectory: 'static', -// assetsPublicPath: '/', -// -// /** -// * Source Maps -// */ -// -// productionSourceMap: true, -// // https://webpack.js.org/configuration/devtool/#production -// devtool: '#source-map', -// -// // Gzip off by default as many popular static hosts such as -// // Surge or Netlify already gzip all static assets for you. -// // Before setting to `true`, make sure to: -// // npm install --save-dev compression-webpack-plugin -// productionGzip: false, -// productionGzipExtensions: ['js', 'css'], -// -// // Run the build command with an extra argument to -// // View the bundle analyzer report after build finishes: -// // `npm run build --report` -// // Set to `true` or `false` to always turn it on or off -// bundleAnalyzerReport: process.env.npm_config_report -// } -// } diff --git a/config/prod.env.js b/config/prod.env.js deleted file mode 100644 index 31ddcdc..0000000 --- a/config/prod.env.js +++ /dev/null @@ -1,5 +0,0 @@ -// 'use strict' -// module.exports = { -// NODE_ENV: '"production"', -// BASE_API:'"http://10.10.1.130:10000"' -// }