loader-runner

WebJar for loader-runner

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

loader-runner
Last Version

Last Version

4.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

loader-runner
WebJar for loader-runner
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/webpack/loader-runner

Download loader-runner

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/loader-runner/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>loader-runner</artifactId>
    <version>4.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/loader-runner/
implementation 'org.webjars.npm:loader-runner:4.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/loader-runner/
implementation ("org.webjars.npm:loader-runner:4.1.0")
'org.webjars.npm:loader-runner:jar:4.1.0'
<dependency org="org.webjars.npm" name="loader-runner" rev="4.1.0">
  <artifact name="loader-runner" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='loader-runner', version='4.1.0')
)
libraryDependencies += "org.webjars.npm" % "loader-runner" % "4.1.0"
[org.webjars.npm/loader-runner "4.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

loader-runner

import { runLoaders } from "loader-runner";

runLoaders({
	resource: "/abs/path/to/file.txt?query",
	// String: Absolute path to the resource (optionally including query string)

	loaders: ["/abs/path/to/loader.js?query"],
	// String[]: Absolute paths to the loaders (optionally including query string)
	// {loader, options}[]: Absolute paths to the loaders with options object

	context: { minimize: true },
	// Additional loader context which is used as base context

	readResource: fs.readFile.bind(fs)
	// A function to read the resource
	// Must have signature function(path, function(err, buffer))

}, function(err, result) {
	// err: Error?

	// result.result: Buffer | String
	// The result

	// result.resourceBuffer: Buffer
	// The raw resource as Buffer (useful for SourceMaps)

	// result.cacheable: Bool
	// Is the result cacheable or do it require reexecution?

	// result.fileDependencies: String[]
	// An array of paths (files) on which the result depends on

	// result.contextDependencies: String[]
	// An array of paths (directories) on which the result depends on
})

More documentation following...

org.webjars.npm

webpack

Versions

Version
4.1.0
3.0.0
2.4.0
2.3.1
2.3.0
2.1.1