Browse Source

基础配置文件修改

IoT
fuguobin 8 months ago
parent
commit
0e172fc735
  1. 1
      .env.development
  2. 1
      .env.production
  3. 1
      .env.test
  4. 2
      index.html
  5. 12
      package.json
  6. 4
      vite.config.js

1
.env.development

@ -8,4 +8,3 @@ VITE_APP_PORT = 8089
# 联美运营系统/开发环境
VITE_APP_BASE_API = '/dev-api/'
VITE_APP_BASE_API_IMAGE = '/dev-api/'

1
.env.production

@ -8,7 +8,6 @@ VITE_APP_PORT = 8089
# 若依管理系统/生产环境
VITE_APP_BASE_API = '/prod-api/'
VITE_APP_BASE_API_IMAGE = '/prod-api/'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip

1
.env.test

@ -6,7 +6,6 @@ VITE_APP_ENV = 'test'
# 若依管理系统/生产环境
VITE_APP_BASE_API = 'http://dev.ccwin-in.com:23111/api'
VITE_APP_BASE_API_IMAGE = 'http://dev.ccwin-in.com:23111'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip

2
index.html

@ -24,7 +24,7 @@
<link rel="stylesheet" href="./public/css/luckysheet.css" />
<link rel="stylesheet" href="./public/assets/iconfont/iconfont.css" />
<script src="./public/plugins/js/plugin.js"></script>
<script type="module" src="/src/main.ts"></script>
<script type="module" src="/src/main.js"></script>
<style>
html,
body,

12
package.json

@ -1,18 +1,18 @@
{
"name": "lianmei",
"version": "3.8.5",
"description": "联美运营系统",
"name": "iot-management-system",
"version": "2.0.0",
"description": "IoT管理系统",
"author": "联美",
"license": "MIT",
"scripts": {
"dev": "vite",
"test": "vite build --mode test",
"prod": "vite build --mode production",
"build:prod": "vite build",
"build:stage": "vite build --mode staging",
"preview": "vite preview"
},
"repository": {
"type": "git",
"url": "https://gitee.com/y_project/RuoYi-Vue.git"
"url": ""
},
"dependencies": {
"@element-plus/icons-vue": "2.0.10",

4
vite.config.js

@ -81,9 +81,7 @@ export default defineConfig(({ mode, command }) => {
//自定义底层的 Rollup 打包配置
rollupOptions: {},
//@rollup/plugin-commonjs 插件的选项
commonjsOptions: {
include: /node_modules|src|components/,
},
commonjsOptions: {},
//当设置为 true,构建后将会生成 manifest.json 文件
manifest: false,
// 设置为 false 可以禁用最小化混淆,

Loading…
Cancel
Save