entry-file-loader
v0.3.2
Published
entry file loader and plugin for webpack
Downloads
1
Readme
entry file loader for webpack
DEPRECATED in favor of extract-file-loader
The entry-file-loader
does the same as file-loader plus adds the generated
assets to their appropriate chunk file list.
This can be handy in combination with assets-webpack-plugin.
Usage
const EntryFilePlugin = require('entry-file-loader/Plugin');
module.exports = {
entry: {
image: '!!entry-file!./image.png' // !! disables other loaders in case some loaders are registered (like file-loader)
},
plugins: [new EntryFilePlugin]
};