// 确保 moment 包已安装
// 添加 CopyWebpackPlugin 来确保 moment.js 文件被正确处理
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
    plugins: [
        new CopyWebpackPlugin({
            patterns: [
                { from: 'node_modules/moment/moment.js', to: 'moment.js' }
            ]
        })
    ]
};