【文件属性】:
文件名称:file2-loader:没有文件发射的 webpack 文件加载器
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-11 20:23:29
JavaScript
没有文件输出的 webpack 文件加载器的副本
======================================
webpack 文件加载器
用法
var url = require ( "file!./file.png" ) ;
// => emits file.png as file in the output directory and returns the public url
// => returns i. e. "/public-path/0dcbbaa701328a3c262cfd45869e351f.png"
默认情况下,文件名是文件的 md5 哈希值,并附加所需资源的扩展名。
您可以为您的文件配置自定义文件名模板(查询参数name )。
[ext]资源的扩展
[name]资源的基本名称
[path]资源相对于context查询参数或选项的路径。
【文件预览】:
file2-loader-master
----.gitignore(587B)
----package.json(760B)
----index.js(749B)
----README.md(2KB)
----appveyor.yml(521B)
----test()
--------correct-filename.test.js(3KB)