Comments (3)
site.loadAssets()
needs the loader as the second argument. If it's not specified, it uses the text loader, but for binary files, you have to pass the binary loader:
import lume from "lume/mod.ts";
import binary from "lume/core/loaders/binary.ts";
const site = lume();
site.loadAssets([".webp"], binary);
export default site;
I'm planning to detect automatically the proper loader based on the file extension. But it's not implemented yet.
from lume.
Thank you. I can confirm that adding the binary loader solves the issue. Perhaps we should add this information to the documentation.
from lume.
Good idea. Thanks for the PR on lume.land!
from lume.
Related Issues (20)
- search not finding generated pages (doesn't seem to be a renderOrder issue?) HOT 2
- Option to allow case sensitive filenames
- lume -s, Fail to copy file to where the path once was a directory HOT 3
- Images are no longer copied to dest. HOT 7
- buildOrder: make page render after all plugins are run HOT 6
- Transform Images plugin: "VipsOperation: class "jxlsave_buffer" not found" HOT 5
- HMR doesn't detect new _data.yml when remote file is specified HOT 2
- Search misses pages that have a tag with spaces HOT 4
- IA blocker
- Feeds plugin: item.updated?.toISOString is not a function HOT 2
- Error: The pages (generated) and (generated) have the same output path "/favicon.ico". Use distinct 'url' values to resolve the conflict HOT 10
- [sitemap plugin] lastmod is ctime HOT 5
- Extra spaces after the opening dashes of the frontmatter trigger the TOC plugin to interpret them as h2 HOT 2
- Serve mode performance with many pages HOT 4
- JS file changes require server restart HOT 3
- Weird deno version requirement HOT 4
- Lume components and components.ts conflict
- Handle `index` basename
- Detect changes in _config.ts file if the src folder is not cwd
- Can't use `outfile` in the ESbuild plugin configuration HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lume.