{"id":16265999,"url":"https://github.com/robinck/alias-resolve-loader","last_synced_at":"2025-03-19T22:30:36.199Z","repository":{"id":48000927,"uuid":"74027080","full_name":"RobinCK/alias-resolve-loader","owner":"RobinCK","description":"Alias Resolve preLoader for webpack 🇺🇦","archived":false,"fork":false,"pushed_at":"2022-11-17T03:53:15.000Z","size":73,"stargazers_count":2,"open_issues_count":13,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T15:26:03.151Z","etag":null,"topics":["aliases","loader","preloader","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/alias-resolve-loader","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/RobinCK.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-17T12:57:26.000Z","updated_at":"2022-10-11T18:06:04.000Z","dependencies_parsed_at":"2023-01-23T12:30:46.974Z","dependency_job_id":null,"html_url":"https://github.com/RobinCK/alias-resolve-loader","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCK%2Falias-resolve-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCK%2Falias-resolve-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCK%2Falias-resolve-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinCK%2Falias-resolve-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinCK","download_url":"https://codeload.github.com/RobinCK/alias-resolve-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244515596,"owners_count":20464917,"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":["aliases","loader","preloader","webpack"],"created_at":"2024-10-10T17:21:25.745Z","updated_at":"2025-03-19T22:30:35.893Z","avatar_url":"https://github.com/RobinCK.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \n  [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard)[![Build Status](https://img.shields.io/travis/RobinCK/alias-resolve-loader.svg?style=flat-square)](https://travis-ci.org/RobinCK/alias-resolve-loader)[![Code Climate](https://img.shields.io/codeclimate/github/RobinCK/alias-resolve-loader.svg?style=flat-square)](https://codeclimate.com/github/RobinCK/alias-resolve-loader)[![npm](https://img.shields.io/npm/dt/alias-resolve-loader.svg?style=flat-square)](https://github.com/RobinCK/alias-resolve-loader)[![Dependencies](https://david-dm.org/robinck/alias-resolve-loader.svg?style=flat-square)](https://david-dm.org/robinck/alias-resolve-loader)[![devDependencies](https://david-dm.org/robinck/alias-resolve-loader/dev-status.svg?style=flat-square)](https://david-dm.org/robinck/alias-resolve-loader#info=devDependencies\u0026view=table)[![NPM version](https://img.shields.io/npm/v/alias-resolve-loader.svg?style=flat-square)](https://www.npmjs.com/package/alias-resolve-loader)\n\u003c/div\u003e\n\n# Alias Resolve preLoader for webpack\n\n## Install webpack 1.x\n\n```\n$ npm install --save-dev alias-resolve-loader@1.0.6\n```\n\n## Install webpack 2.x\n\n```\n$ npm install --save-dev alias-resolve-loader\n```\n\n## Example webpack 1.x config\n\n```js\nmodule.exports = {\n  //...\n  \n  module: {\n    preLoaders: [\n      {\n          test: /\\.(less|scss|css)$/,\n          loader: \"alias-resolve-loader\"\n      }\n    ]\n  },\n  \n  aliasesResolve: {\n    \"@aliasName\": \"path/to/your/folder\"\n  },\n  \n  //...\n};\n```\n\n## Example webpack 2.x config\n\n```js\nmodule.exports = {\n  //...\n  \n  module: {\n    rules: [\n      {\n        enforce: 'pre',\n        test: /\\.(less|scss|css)$/,\n        use: {\n          loader: 'alias-resolve-loader',\n          options: {\n            alias: {\n             \"@aliasName\": \"path/to/your/folder\"\n           }\n          }\n        },\n      }\n    ]\n  },\n  \n  //...\n};\n```\n\nA javascript file before compilation\n```less\n@import \"@aliasName/css/user.less\";\n\nbody {\n  background: #9e9e9e;\n}\n```\n\nwill become:\n```less\n@import \"path/to/your/folder/css/user.less\";\n\nbody {\n  background: #9e9e9e;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinck%2Falias-resolve-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinck%2Falias-resolve-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinck%2Falias-resolve-loader/lists"}