next-task-loader

0.0.4 • Public • Published

next-task-loader

A Next.js plugin to load assets with custom task loader scripts.

Why

When developing Next.js applications, we often need data from

Installation

npm install --save next-task-loader

or

yarn add next-task-loader

Usage

Create a next.config.js in your project

// next.config.js
const withTaskLoader = require('next-task-loader')

let config = {}

// ...rest of your config

config = withTaskLoader()(config) // Or withTaskLoader(options)(config)

module.exports = config

Then, any imported modules with name matching .task.js will be imported by this loader.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i next-task-loader

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

5.13 kB

Total Files

6

Last publish

Collaborators

  • patrickchen