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
import url from 'entry-chunk-loader!./otherBundle');
import url from 'entry-chunk-loader?path=childDir!./otherBundle';
import url from 'entry-chunk-loader?name=bundle.js!./file';
import url from 'entry-chunk-loader?inert!./manifest.json';
CommonJS modules
const url = require('entry-chunk-loader!./otherBundle');
const url = require('entry-chunk-loader?path=childDir!./otherBundle');
const url = require('entry-chunk-loader?name=bundle.js!./file');
const url = require('entry-chunk-loader?inert!./manifest.json');