Skip to content

Commit fefcee3

Browse files
committed
chore: 添加 is-ci 依赖并更新 webpack 配置以支持 CI 环境
1 parent 07afc77 commit fefcee3

3 files changed

Lines changed: 22 additions & 3 deletions

File tree

packages/vue2/build/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path');
2+
const isCI = require('is-ci');
23
const webpack = require('webpack');
34
const { VueLoaderPlugin } = require('vue-loader');
45
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
@@ -14,7 +15,7 @@ const library = 'cloudAdminDesigner';
1415

1516
const extensions = ['.vue', '.js', '.ts', '.json', '.css'];
1617

17-
const isRelease = process.env.LCAP_RELEASE == 1;
18+
const isRelease = isCI || process.env.LCAP_RELEASE == 1;
1819

1920
const baseConfig = (type) => {
2021
return {

packages/vue2/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"@lcap/basic-template": "workspace:*",
2424
"@vue/composition-api": "1.7.1",
2525
"babel-polyfill": "^6.26.0",
26-
"lodash": "4.17.21",
2726
"date-fns": "^2.6.0",
28-
"process": "^0.11.10",
27+
"lodash": "4.17.21",
2928
"pinia": "2.2.8",
29+
"process": "^0.11.10",
3030
"vue": "2.6.14",
3131
"vue-i18n": "^8.28.2",
3232
"vue-router": "^3.1.2"
@@ -40,6 +40,7 @@
4040
"css-loader": "^7.1.2",
4141
"esbuild": "^0.20.2",
4242
"html-webpack-plugin": "^5.6.0",
43+
"is-ci": "^4.1.0",
4344
"mini-css-extract-plugin": "^2.9.0",
4445
"minimist": "^1.2.8",
4546
"postcss": "^8.4.38",

pnpm-lock.yaml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)