{"id":17419163,"url":"https://github.com/axtgr/webpack-loader-modules","last_synced_at":"2025-03-02T05:44:58.730Z","repository":{"id":96593184,"uuid":"44892611","full_name":"axtgr/webpack-loader-modules","owner":"axtgr","description":"Retrieve the list of the modules processed by a loader","archived":false,"fork":false,"pushed_at":"2015-10-26T08:05:08.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T13:40:02.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axtgr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-25T01:56:33.000Z","updated_at":"2015-10-25T01:57:01.000Z","dependencies_parsed_at":"2023-03-13T16:29:06.821Z","dependency_job_id":null,"html_url":"https://github.com/axtgr/webpack-loader-modules","commit_stats":null,"previous_names":["alex-shnayder/webpack-loader-modules"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fwebpack-loader-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fwebpack-loader-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fwebpack-loader-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axtgr%2Fwebpack-loader-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axtgr","download_url":"https://codeload.github.com/axtgr/webpack-loader-modules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465077,"owners_count":19967243,"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":[],"created_at":"2024-10-17T02:17:05.990Z","updated_at":"2025-03-02T05:44:58.712Z","avatar_url":"https://github.com/axtgr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-loader-modules\n\nA [webpack](http://webpack.github.io/) plugin that allows you to retrieve the list of the modules processed by a loader.\n\n## Install\n\n`npm install -D webpack-loader-modules`\n\n## Example\n\nHere we use [compiler-webpack-plugin](https://github.com/elliottsj/compiler-webpack-plugin) to copy all the template modules to another chunk.\n\n```javascript\nvar LoaderModules = require('webpack-loader-modules');\nvar CompilerPlugin = require('compiler-webpack-plugin');\nvar templateModules = new LoaderModules();\n\nmodule.exports = {\n  module: {\n    loaders: [\n      test: /\\.jade$/,\n      loader: templateModules.loader('html!jade')\n    ]\n  },\n  plugins: [\n    new CompilerPlugin('this-compilation', function(compilation) {\n      compilation.plugin('optimize-chunks', function(chunks) {\n        var templates = templateModules.get();\n\n        templates.forEach(function(template) {\n          template.addChunk(chunks[0]);\n          chunks[0].addModule(template);\n        });\n      });\n    });\n  ]\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Fwebpack-loader-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxtgr%2Fwebpack-loader-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxtgr%2Fwebpack-loader-modules/lists"}