Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@vxna/gltf-loader
Advanced tools
An opinionated webpack loader for glTF files and it's resources.
This loader emits warning on glTF files with base64-encoded resources because they are less efficient.
If you want self-contained files, consider GLB file format instead and use it with file-loader only.
Name | Type | Default | Description |
---|---|---|---|
inline | {Boolean} | false | Inline glTF files into bundle |
pretty | {Boolean} | false | Make glTF files human readable |
Output glTF files (whitespace is reduced by default):
module.exports = {
module: {
rules: [
{
test: /\.gltf$/,
use: ['file-loader', '@vxna/gltf-loader']
},
{
test: /\.(bin|jpe?g|png)$/,
loader: 'file-loader'
}
]
}
}
Inline glTF files (resources are still external):
module.exports = {
module: {
rules: [
{
test: /\.gltf$/,
loader: '@vxna/gltf-loader',
options: { inline: true }
},
{
test: /\.(bin|jpe?g|png)$/,
loader: 'file-loader'
}
]
}
}
Based on webmanifest-loader
FAQs
An opinionated webpack loader for glTF files
The npm package @vxna/gltf-loader receives a total of 12 weekly downloads. As such, @vxna/gltf-loader popularity was classified as not popular.
We found that @vxna/gltf-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.