webpack-require-from:Webpack插件,允许配置路径或URL来获取动态导入

从webpack要求在运行时控制动态导入路径/ URL兼容webpack 5,4,3,2支持网络工作者加载( )准备生产没有依赖关系轻巧的经过测试目录为什么在运行时更改动态导入路径? Webpack允许使用或import()原子地拆分和加载代码。当您的主捆绑包在浏览器中运行时,“按需”获取模块。 Webpack从静态URL加载模块(块),该URL由的config.output.publicPath确定。有时您需要在运行时控制此模块(块)URL,例如:块托管在CDN上不同的环境使用不同的URL来加载资产(生产,暂存,质量检查)您的index文件是从
zip
webpack-require-from-master.zip 预估大小:42个文件
folder
webpack-require-from-master 文件夹
folder
.circleci 文件夹
file
config.yml 967B
file
.gitignore 602B
file
README.md 10KB
folder
.github 文件夹
file
FUNDING.yml 662B
file
appveyor.yml 469B
folder
test 文件夹
folder
webpack3 文件夹
file
package.json 252B
file
yarn.lock 111KB
folder
webpack2 文件夹
file
package.json 252B
file
yarn.lock 101KB
folder
webpack5 文件夹
file
package.json 283B
file
yarn.lock 60KB
folder
common 文件夹
file
playground.js 2KB
folder
src 文件夹
file
moduleB.js 56B
file
worker.js 36B
file
index.js 506B
file
moduleC.js 56B
file
common.test.js 18KB
file
webpack.config.shared.js 2KB
file
webworker.test.js 3KB
folder
webpack4 文件夹
file
package.json 283B
file
yarn.lock 114KB
file
LICENSE 1KB
file
package.json 1KB
folder
src 文件夹
file
codeBuilders.js 4KB
file
constants.js 155B
file
plugin.js 4KB
file
helpers.js 1KB
file
index.js 104B
folder
example 文件夹
file
README.md 143B
file
worker-module.js 107B
file
package.json 330B
file
b.js 50B
file
worker.js 146B
file
index.js 339B
file
c.js 50B
file
a.js 50B
file
index.html 313B
file
webpack.config.js 767B
file
globals.js 134B
file
yarn.lock 267KB
file
.npmignore 73B
file
yarn.lock 7KB
zip 文件大小:279.02KB