Socket
Socket
Sign inDemoInstall

beidou-plugin-isomorphic-register

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beidou-plugin-isomorphic-register

isomorphic register


Version published
Maintainers
1
Created
Source

beidou-plugin-isomorphic-register

TNPM version TNPM downloads

build status line coverage branch coverage

说明

webpack-isomorphic-tools 的注册插件,该插件有如下作用:

  1. 使得服务端可以识别less等资源文件。
  2. 增加服务端渲染时对浏览器环境的模拟,以支持某些组件在render时引用 BOM/DOM 对象的场景。
  3. 增加服务端对webpackConfig.resolve.alias的支持,可通过开关关闭。

插件配置说明如下:

config.isomorphicRegister = {
  configPath: '',
  webpackAlias: {},
  match: 'NO_MATCH',
};
  • configPath
    webpack-isomorphic-config 文件的路径

  • webpackAlias
    webpack config 中的 resolve.alias 配置,没有则不配或者配置为空对象

  • match
    匹配的请求路径正则,配置后仅对满足正则的请求做polyfill,不配置对所有请求生效。
    可选的配置类型为正则表达式或者字符串。如果是字符串,则通过 new RegExp(string) 的方式创建正则表达式。

Contributors(4)

Ordered by date of first contribution, by ali-contributors.


Keywords

FAQs

Package last updated on 12 Jun 2017

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