Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

entry-chunk-loader

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

entry-chunk-loader

Webpack loader to generate a new entry chunk.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

entry-chunk-loader

Webpack loader to generate a new entry chunk.

A fork of spawn-loader, with a few notable changes:

Installation

npm install --save-dev entry-chunk-loader

Usage

ECMAScript modules

// simplest usage: emits otherBundle.js in the same directory
import url from 'entry-chunk-loader!./otherBundle');
// url === 'otherBundle.js'

// build into a subdir: emits otherBundle.js
// (and any assets it emits) into childDir/
import url from 'entry-chunk-loader?path=childDir!./otherBundle';
// url === 'childDir/otherBundle.js'

// specify a different name
import url from 'entry-chunk-loader?name=bundle.js!./file';
// url === 'bundle.js'

// emit the required file as-is, with no prelude
// only useful in combination with other loaders
import url from 'entry-chunk-loader?inert!./manifest.json';
// url === 'manifest.json'

CommonJS modules

// simplest usage: emits otherBundle.js in the same directory
const url = require('entry-chunk-loader!./otherBundle');
// url === 'otherBundle.js'

// build into a subdir: emits otherBundle.js
// (and any assets it emits) into childDir/
const url = require('entry-chunk-loader?path=childDir!./otherBundle');
// url === 'childDir/otherBundle.js'

// specify a different name
const url = require('entry-chunk-loader?name=bundle.js!./file');
// url === 'bundle.js'

// emit the required file as-is, with no prelude
// only useful in combination with other loaders
const url = require('entry-chunk-loader?inert!./manifest.json');
// url === 'manifest.json'

Keywords

FAQs

Package last updated on 01 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc