Skip to content

What is an easier way to add a directory-import plugin to the configuration? #898

Answered by rschristian
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what you're meaning by "easier", but you can add the directory plugin like this:

// wmr.config.mjs
import { defineConfig } from 'wmr';
import directoryPlugin from '@wmrjs/directory-import';

export default defineConfig((config) => ({
    plugins: [directoryPlugin(config)]
}));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rschristian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant