Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hzab/webpack-config

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hzab/webpack-config

webpack 相关核心配置

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
3
Weekly downloads
 
Created
Source

@hzab/webpack-config

webpack 相关核心配置

webpack 相关核心配置

注意事项

  • closeMulEnvConf: true 时,请直接使用 public/config/config.js 文件,public-config 下的文件将失效

mergeConfig 参数

属性名称属性类型必须默认值描述
envObjectwebpack 环境变量
userConfObject用户自定义的 webpack 配置
optionObject其他配置

option 参数

属性名称属性类型必须默认值描述
closeMulEnvConfbooleanfalse是否关闭多环境配置,关闭之后请直接使用 public/config/config.js 文件,public-config 下的文件将失效
closeMockboolean关闭 mock 接口功能
closeStyleRulesboolean是否关闭内部样式处理规则,使用自定义规则
allowBothStyleModuleboolean允许 css module 和非 css module 共存,使用是否携带 module 后缀进行区别,如:x.module.(less|css) x.(less| css)

组件开发

文件目录

  • example 本地开发测试代码
  • lib 组件源码

发布

  • 命令:npm publish --access public
  • 发布目录:
    • lib
    • src

FAQs

Package last updated on 16 Jul 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc