Vue 2 项目 Webpack 升级到 Vite 构建工具

ReviewAudited by ClawScan on May 12, 2026.

Overview

This is a coherent migration guide for Vue 2/Webpack to Vite, with expected project edits and optional deployment steps that should be reviewed before use.

This skill appears safe to use as a migration checklist, but apply it like a code-changing assistant: start from a clean Git commit or backup, review every deletion and package change, avoid putting secrets in frontend environment files, and treat the optional FTP deployment script as sensitive production-access code.

Findings (3)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

Running the commands without a clean Git state or backup could delete configuration or dependency lockfiles that the project still needs.

Why it was flagged

The migration guide includes shell commands that delete project directories and lockfiles. This is consistent with a Webpack-to-Vite migration, but can remove important project files if run in the wrong directory or before review.

Skill content
rm -rf build/ config/
rm -f .babelrc .postcssrc.js babel.config.js
rm -f package-lock.json yarn.lock
Recommendation

Run these steps only from the intended project root, ensure the repository is backed up or committed first, and review diffs after each phase.

What this means

Dependency versions or transitive packages may change, which can affect build reproducibility or introduce compatibility/security issues.

Why it was flagged

The skill asks the user to reinstall dependencies and allows forced installation. This is normal for a build-tool migration, but can change dependency resolution and should be reviewed.

Skill content
安装依赖:`pnpm install`(冲突时用 `--force`)
Recommendation

Prefer normal install first, inspect package.json and lockfile changes, and use `--force` only when necessary and understood.

What this means

If real credentials are placed directly in the script or committed to source control, they could be exposed; running the production deploy script could publish files to a live server.

Why it was flagged

The optional FTP deployment script includes placeholders for deployment credentials and production upload configuration. This is purpose-aligned for deployment, but it involves account credentials and production publishing authority.

Skill content
user: 'your_prod_user',
password: 'your_prod_password',
host: 'your_ftp_host',
remoteRoot: '/your_prod_path/'
Recommendation

Store deployment credentials in environment variables or a secure secret manager, prefer SFTP/CI-based deployment where possible, and run production deployment only after explicit confirmation.