Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

yma-config-plugin

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yma-config-plugin

基于 Webpack5.0 开发的 YMA 打包插件层配置

latest
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

Plugin

// 添加 CopyWebpackPlugin 11.0.0
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
    presets: ['yma-config-preset'],
    devServer: {
        proxy: {
            '/api': {
                // target: 'http://10.99.128.151:8700',
                target: 'http://120.92.35.96:8720',
                changeOrigin: true,
            },
        },
    },
    chainWebpack: function (chain) {
        chain.plugin('copywebpackplugin').use(CopyWebpackPlugin, [
            {
                patterns: [
                    {
                        from: 'public/favicon.ico',
                        to: '',
                    },
                ],
            },
        ]);
    },
};

FAQs

Package last updated on 21 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts