
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
lazy-compile-webpack-plugin
Advanced tools
Lazy compile dynamic imports to boost your webpack startup time.
Starting the development server is taking you a long time when the codebase is large. You have tried dynamic imports, it only does a load-on-demand, the whole project was still been compiled. We don't want to wait a couple of minutes for a simple modification. People don't waste time for the things they have never used!
# npm
npm i --save-dev lazy-compile-webpack-plugin
# yarn
yarn add --dev lazy-compile-webpack-plugin
const LazyCompilePlugin = require('lazy-compile-webpack-plugin');
module.exports = {
entry: 'index.js',
output: {
path: __dirname + '/dist',
filename: 'bundle.js',
},
plugins: [new LazyCompilePlugin()],
};
Name | Type | Default | Description |
---|---|---|---|
refreshAfterCompile | boolean | false | Enable/Disable page refresh when compilation is finish |
ignores | `RegExp[] | Function[]` | undefined |
refreshAfterCompile
Type: boolean
Default: false
Set false
for a seamless dev experience.
ignores
Type: RegExp[] | ((request: string, wpModule: object) => boolean)
Default: undefined
Request to be ignored from lazy compiler, html-webpack-plugin
is always ignored.
Specifically, an Angular app should enable this option like following:
new LazyCompileWebpackPlugin({
ignores: [
/\b(html|raw|to-string)-loader\b/,
/\bexports-loader[^?]*\?exports\.toString\(\)/
],
});
FAQs
Lazy compile dynamic imports to boost your webpack startup time.
The npm package lazy-compile-webpack-plugin receives a total of 410 weekly downloads. As such, lazy-compile-webpack-plugin popularity was classified as not popular.
We found that lazy-compile-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.