Skip to content

cosmn/loader-utils-extra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loader-utils-extra

Additional utilities for webpack loaders

Installation

# npm
npm install https://github.com/cosmn/loader-utils-extra

# yarn
yarn add https://github.com/cosmn/loader-utils-extra

Usage

// my-loader/index.js

const { getResourcePath } = require("loader-utils-extra");

exports.default = function myLoader(/*content, map, meta*/) {
    getResourcePath(this) // /home/user/project/file.ext
}

Api

getIssuer()

getResourcePath()

getIssuerContents()

getIssuerPath()

getIssuerLineLocation()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published