sbjw
2025-09-01 9f6d02dc2c2647076d4b56fce62a347188462c5a
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;
};