sbjw
2025-10-17 120deee086a2327437549b8c6f642f59c4851263
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const CopyPlugin = require("copy-webpack-plugin");
 
module.exports = function override(config) {
    config.plugins.push(
        new CopyPlugin({
            patterns: [
                {
                    from: "node_modules/iclient3d-plot-diy-attachment/assets/project3d/Build", // 你的文件路径
                    to: "project3d/Build", // 输出到 public 目录
                    toType: 'dir'
                },
                {
                    from: "node_modules/iclient3d-plot-diy-attachment/assets/project3d/Model", // 你的文件路径
                    to: "project3d/Model", // 输出到 public 目录
                    toType: 'dir'
                }
            ],
        })
    );
    return config;
};