Skip to content

Commit

Permalink
fix: 🐛 missing *
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Reese committed Sep 17, 2020
1 parent a598044 commit 4104190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ plugins: {
'@elderjs/plugin-images': {
folders: [
{
src: '/images/', // where your original images are. Relative to rootDir/process.cwd() defined in your elder.config.js.
src: '/images/*', // glob of where your original images are. Relative to rootDir/process.cwd() defined in your elder.config.js. Careful with **.
output: '/images/', // where files should be put within the distDir defined in your elder.config.js.
},
],
Expand Down
4 changes: 2 additions & 2 deletions packages/images/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const imageStore = require('./utils/imageStore');
const imageFileTypes = ['jpg', 'jpeg', 'png'];

const plugin = {
name: 'elderjs-plugin-images',
name: '@elderjs/plugin-images',
description: 'Resizes images. ',
init: (plugin) => {
// used to store the data in the plugin's closure so it is persisted between loads
Expand Down Expand Up @@ -81,7 +81,7 @@ const plugin = {
config: {
folders: [
{
src: '/images/', // where your original images are. Relative to rootDir/process.cwd() defined in your elder.config.js.
src: '/images/*', // where your original images are. Relative to rootDir/process.cwd() defined in your elder.config.js.
output: '/images/', // where files should be put within the distDir defined in your elder.config.js.
},
],
Expand Down

0 comments on commit 4104190

Please sign in to comment.