{"id":18878361,"url":"https://github.com/liximomo/lazy-compile-webpack-plugin","last_synced_at":"2025-04-06T10:11:06.046Z","repository":{"id":35009832,"uuid":"196173052","full_name":"liximomo/lazy-compile-webpack-plugin","owner":"liximomo","description":"Boost webpack startup time by lazily compiling dynamic imports","archived":false,"fork":false,"pushed_at":"2024-02-23T08:11:34.000Z","size":1228,"stargazers_count":141,"open_issues_count":22,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T21:47:41.666Z","etag":null,"topics":["compile","dynamic","imports","lazy","lazy-compile-webpack-plugin","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liximomo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-10T09:13:14.000Z","updated_at":"2024-02-23T08:11:38.000Z","dependencies_parsed_at":"2024-06-18T16:45:39.776Z","dependency_job_id":"5e1734cf-f832-425d-b129-4f72da045c43","html_url":"https://github.com/liximomo/lazy-compile-webpack-plugin","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":0.05405405405405406,"last_synced_commit":"addca4335403ac41e66649a29974da5669988ff6"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liximomo%2Flazy-compile-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liximomo%2Flazy-compile-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liximomo%2Flazy-compile-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liximomo%2Flazy-compile-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liximomo","download_url":"https://codeload.github.com/liximomo/lazy-compile-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464220,"owners_count":20942970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compile","dynamic","imports","lazy","lazy-compile-webpack-plugin","webpack"],"created_at":"2024-11-08T06:26:13.847Z","updated_at":"2025-04-06T10:11:06.030Z","avatar_url":"https://github.com/liximomo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/webpack/webpack\"\u003e\n    \u003cimg width=\"200\" height=\"200\"\n      src=\"https://webpack.js.org/assets/icon-square-big.svg\"\u003e\n  \u003c/a\u003e\n  \u003ch1\u003eLazy Compile Webpack Plugin\u003c/h1\u003e\n  \u003cp\u003ePlugin that saves a tremendous amount of time.\u003c/p\u003e\n\u003c/div\u003e\n\n## Why\n\nStarting 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!\n\n## Install\n\n```sh\n# npm\nnpm i -D lazy-compile-webpack-plugin\n\n# yarn\nyarn add -D lazy-compile-webpack-plugin\n```\n\n## Usage\n\n```js\nconst LazyCompilePlugin = require('lazy-compile-webpack-plugin');\n\nmodule.exports = {\n  entry: 'index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'bundle.js',\n  },\n  plugins: [new LazyCompilePlugin()],\n};\n```\n\n## Options\n\n|                       Name                        |          Type           |   Default   | Description                                              |\n| :-----------------------------------------------: | :---------------------: | :---------: | :------------------------------------------------------- |\n| **[`refreshAfterCompile`](#refreshAfterCompile)** |        `boolean`        |   `false`   | Enable/Disable _page refresh_ when compilation is finish |\n|             **[`ignores`](#ignores)**             | `RegExp[] \\| Function[]` | `undefined` | Request to be ignored from lazy compiler                 |\n\n### `refreshAfterCompile`\n\nType: `boolean`\nDefault: `false`\n\nSet `false` for a seamless dev experience.\n\n### `ignores`\n\nType: `RegExp[] | ((request: string, wpModule: object) =\u003e boolean)`\nDefault: `undefined`\n\nRequest to be ignored from lazy compiler, `html-webpack-plugin` is always ignored.\n\nSpecifically, an Angular app should enable this option like following:\n\n```js\nnew LazyCompileWebpackPlugin({\n  ignores: [\n    /\\b(html|raw|to-string)-loader\\b/,\n    /\\bexports-loader[^?]*\\?exports\\.toString\\(\\)/\n  ],\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliximomo%2Flazy-compile-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliximomo%2Flazy-compile-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliximomo%2Flazy-compile-webpack-plugin/lists"}