We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
错误1: 当插件配置多任务构建时,两个任务生成的 assets-manifest.json 文件名相同,会相互覆盖,且无法通过配置调整文件名 错误2: 手动在 plugin 内设置 assetsManifest = false,构建报错,错误位置发生在 ServerRunnerPlugin 和 ServerCompilerPlugin
No response
3.5.1
import { defineConfig } from '@ice/app'; import type { Plugin } from '@ice/app/types'; import def from '@ali/ice-plugin-def'; const myPlugin: Plugin = () => { return { name: 'test', setup(api) { // 问题1: 多个任务间生成的 assets-manifest.json 相互覆盖 api.registerTask('custom', { entry: { custom: './src/pages/index', }, }); // 问题2: 配置 assetsManifest = false 构建错误 // api.onGetConfig(config => { // config.assetsManifest = false; // }); }, }; }; // The project config, see https://v3.ice.work/docs/guide/basic/config const minify = process.env.NODE_ENV === 'production' ? 'swc' : false; export default defineConfig(() => ({ // Set your configs here. minify, server: { onDemand: true, format: 'esm', }, plugins: [def(), myPlugin()], }));
The text was updated successfully, but these errors were encountered:
使用 npm create ice ice-app 新建项目加上上述 ice.config.mts 内容即可复现问题
Sorry, something went wrong.
多任务下的确会有这个问题,目前多任务是希望构建那里两端? 理论上 assets-manifest 仅用于 web 产物消费
No branches or pull requests
Describe the bug
错误1: 当插件配置多任务构建时,两个任务生成的 assets-manifest.json 文件名相同,会相互覆盖,且无法通过配置调整文件名
错误2: 手动在 plugin 内设置 assetsManifest = false,构建报错,错误位置发生在 ServerRunnerPlugin 和 ServerCompilerPlugin
Expected behavior
Actual behavior
No response
Version of ice.js
3.5.1
Content of build.json or ice.config.mts
Additional context
No response
The text was updated successfully, but these errors were encountered: