{"_id":"@ben_lau/style-resources-loader","_rev":"2-ae1c1b149a38a7831d660188c2b778ce","name":"@ben_lau/style-resources-loader","dist-tags":{"latest":"1.5.2"},"versions":{"1.5.0":{"name":"@ben_lau/style-resources-loader","version":"1.5.0","description":"CSS processor resources loader for webpack","author":{"name":"Yan Shi","email":"yenshih95@gmail.com","url":"https://github.com/yenshih"},"license":"MIT","engines":{"node":">=8.9"},"main":"lib/index.js","scripts":{"clean":"rimraf lib coverage test/**/outputs","lint":"eslint . --ext .js,.jsx,.ts,.tsx","prettier":"prettier {src,test}/**/*.ts --write","test":"jest","coverage":"npm test -- --coverage","posttest":"rimraf test/**/outputs","start":"tsc -w","build":"tsc -d","prepare":"npm run clean && npm run lint && npm run build && npm run coverage"},"keywords":["webpack","loader","style","css","sass","scss","less","stylus","inject","resource","variable","mixin"],"repository":{"type":"git","url":"git+https://github.com/yenshih/style-resources-loader.git"},"homepage":"https://github.com/yenshih/style-resources-loader","bugs":{"url":"https://github.com/yenshih/style-resources-loader/issues"},"dependencies":{"glob":"^7.2.0","loader-utils":"^2.0.0","schema-utils":"^2.7.0","tslib":"^2.3.1"},"devDependencies":{"@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@types/glob":"^7.2.0","@types/is-promise":"^2.2.0","@types/jest":"^27.0.3","@types/loader-utils":"^2.0.3","@types/node":"^16.11.12","@types/webpack":"^4.41.25","@types/webpack-merge":"^5.0.0","@typescript-eslint/eslint-plugin":"^5.6.0","@typescript-eslint/parser":"^5.6.0","coveralls":"^3.1.1","cross-env":"^7.0.3","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","jest":"^27.4.3","lint-staged":"^12.1.2","prettier":"^2.5.1","raw-loader":"^4.0.2","ts-jest":"^27.1.0","typescript":"^4.5.2","webpack":"^4.46.0","webpack-merge":"^5.8.0"},"peerDependencies":{"webpack":"^3.0.0 || ^4.0.0 || ^5.0.0"},"sideEffects":false,"gitHead":"834c2bd2ab29e40aea2ba434f10aac1bd115518a","_id":"@ben_lau/style-resources-loader@1.5.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-aW+H/MseVbnewcfxIJUPT7eUMvFr5Fzu05pRyXTTwir4ahZzDrFuGb2ltyLlcGjmHA1O/HeC3holU4jrfbermA==","shasum":"9375170e114c0c5c910eabe7234459f78b5619f7","tarball":"https://registry.npmjs.org/@ben_lau/style-resources-loader/-/style-resources-loader-1.5.0.tgz","fileCount":65,"unpackedSize":48972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmaQ1vfWAsb+0rqqmEzKr/WQ8yf909eOepaDgd0lt6FAiBeqNTSu8wFnV2DWvkbTdld2ODbFGGiTQHGQWYoAVQltw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifNfBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+SA/9G6OaEKQgi/nG4AXSpSy1h4gV5P40mHIllFqg3G/NDsGd1Cdt\r\nhRe3LXmIL62jGSIsezFWZh4NPEznJDG26NMApfUfd+V5BluTsJaDqT1f7RP5\r\nFylmRL7IbYjnKDnVM/U8UvFWvGdOpCEAxl2rr6x67mwIKM/eRxN10N7MGCtF\r\nTkPYuFv0ddUpav/ImoRjWVO7faFceCMkPP8Ezg7agi9TMmdsoycqbFionl6z\r\nQMucL6FjkABnSTNFIv0JH8kVYQ3wxEBF90dbX+Yua6mUkRNYXGprBVdGGp8V\r\nATn1TCfisG5d8uCuLNd73/4OitK11N/KFcvH/5wEa/BOsoFCx0kAsEXzyrPX\r\ngq65uCLzVGN/cXrK0PZqbKy1kMoD61DVcf1Rg6da1Kn1ecOMxUm8zQMPJ7q/\r\nQFdsYKy0JXiYP+WcTWEKZ5FkT3EKaX+8bQZj5cth3dP259RXA03zKI7LtVtD\r\n9b2fYpmje85feGeUFXR2+8MlDh5zrqFLMHYE2t/cYhvekERXFHVvaD7BWYYG\r\npMYT7JKQVWPSUHKiDC/LWMxfFyqb0zqlGd0JJbKi9zYdrESYkeb4t0Ck6m0v\r\ndY9cRFchO3YG5aYjuKfQKibC5Phl7GsNvA4Jc3+3HOccYuVOGcuzXxrhj9CC\r\nHB58AEh0NMDFKTrRr8IbcnVKOvXYLOdcXaM=\r\n=1Zga\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ben_lau","email":"408736066@qq.com"},"directories":{},"maintainers":[{"name":"ben_lau","email":"408736066@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/style-resources-loader_1.5.0_1652348865011_0.06596727296359095"},"_hasShrinkwrap":false},"1.5.1":{"name":"@ben_lau/style-resources-loader","version":"1.5.1","description":"CSS processor resources loader for webpack","author":{"name":"ben-lau","email":"408736066@qq.com","url":"https://github.com/ben-lau"},"license":"MIT","engines":{"node":">=8.9"},"main":"lib/index.js","scripts":{"clean":"rimraf lib coverage test/**/outputs","lint":"eslint . --ext .js,.jsx,.ts,.tsx","prettier":"prettier {src,test}/**/*.ts --write","test":"jest","coverage":"npm test -- --coverage","posttest":"rimraf test/**/outputs","start":"tsc -w","build":"tsc -d","prepare":"npm run clean && npm run lint && npm run build && npm run coverage"},"keywords":["webpack","loader","style","css","sass","scss","less","stylus","inject","resource","variable","mixin"],"repository":{"type":"git","url":"git+https://github.com/yenshih/style-resources-loader.git"},"homepage":"https://github.com/yenshih/style-resources-loader","bugs":{"url":"https://github.com/yenshih/style-resources-loader/issues"},"dependencies":{"glob":"^7.2.0","loader-utils":"^2.0.0","schema-utils":"^2.7.0","tslib":"^2.3.1"},"devDependencies":{"@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@types/glob":"^7.2.0","@types/is-promise":"^2.2.0","@types/jest":"^27.0.3","@types/loader-utils":"^2.0.3","@types/node":"^16.11.12","@types/webpack":"^4.41.25","@types/webpack-merge":"^5.0.0","@typescript-eslint/eslint-plugin":"^5.6.0","@typescript-eslint/parser":"^5.6.0","coveralls":"^3.1.1","cross-env":"^7.0.3","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","jest":"^27.4.3","lint-staged":"^12.1.2","prettier":"^2.5.1","raw-loader":"^4.0.2","ts-jest":"^27.1.0","typescript":"^4.5.2","webpack":"^4.46.0","webpack-merge":"^5.8.0"},"peerDependencies":{"webpack":"^3.0.0 || ^4.0.0 || ^5.0.0"},"sideEffects":false,"gitHead":"351cb569a74539a67ec8593c8bf92fda6518ea60","_id":"@ben_lau/style-resources-loader@1.5.1","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-2xwzWvVMQugHUHpyZUMPzJ1KpNECMEIo2ruTK8XAvUrKjyflK19QjPLB9AI/GAGuS0+dUK/ERoqvA6zSaliq8w==","shasum":"5dba11d482143effa1d6d92894935cba6949728c","tarball":"https://registry.npmjs.org/@ben_lau/style-resources-loader/-/style-resources-loader-1.5.1.tgz","fileCount":65,"unpackedSize":51720,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEe3sbeGyTjDtsnin/rcJipZ+y0Zw1KMrgBQm0lrEyb4AiEA+snqXwbP7tj76j0TADZYBzZtqA6+S6t7s0bcF7psSiU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifiY0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJWg/+IFG6Iudhmt6g4pvi4tBHcgewQ/c+wRlrkt75F145lTRhT9ig\r\nMJzNtP9XtW4ZyamVMptkINoPGymCquBD7h8vunNrKAJSyyxjUqwMpcXohqyQ\r\nWbH5Ddt7rprdVYaRgPvXLO06dxPyFprBD6u/5exkvxwfvb54Uo+mFfd1NFku\r\nlEhKKdNPBmnEi8J9naS5rvBPBMCuVkBEIlONirGEJhhomv9nLoGK283Z/l+D\r\nkTIpzNHkVFZNky6EYTqDOKRAmjC0R4I/hcjZ6YyoK1EeVf1vgJtHPFVkVfsM\r\nXoh58+KbEtZ8G28dP4MjCFptin9CyF7/tjAMXCgJiRy8uB8OATPq4F7Bi4oB\r\nRnr28FElnsgj8MItZSjOZPBwmzXexWSGY2WyKew92J7TNjCyylVfo9AgThm4\r\n7KnLeJlXJXNeTEyJfHdE3rF0RgAGMVjIpBp5qGGALG4msO9rqMpwBDB0aGCL\r\nFaTORGJLmOwNih1ynMzAUJYQgSjqf/cQMoFyeO+EEMuWDUpRen4VN3qj4Svq\r\nUiLuIf+HyIwIZSV4xaIYwGzicJ+y6Evia98wU4XvYxyiB3DZb59d7j9UJXj1\r\nMJa9yxoY7awlpou+8m6b+MlO9ssSkLshY2+9Cn+UuUnLiS+LLtpcer3hzd4S\r\nsRydcU0UxG7S+GO1G748DvxE/2AYHm08eKw=\r\n=aHnc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ben_lau","email":"408736066@qq.com"},"directories":{},"maintainers":[{"name":"ben_lau","email":"408736066@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/style-resources-loader_1.5.1_1652434484316_0.8943290696492663"},"_hasShrinkwrap":false},"1.5.2":{"name":"@ben_lau/style-resources-loader","version":"1.5.2","description":"CSS processor resources loader for webpack","author":{"name":"Ben Lau","email":"408736066@qq.com","url":"https://github.com/ben-lau"},"license":"MIT","engines":{"node":">=8.9"},"main":"lib/index.js","scripts":{"clean":"rimraf lib coverage test/**/outputs","lint":"eslint . --ext .js,.jsx,.ts,.tsx","prettier":"prettier {src,test}/**/*.ts --write","test":"jest","coverage":"npm test -- --coverage","posttest":"rimraf test/**/outputs","start":"tsc -w","build":"tsc -d","prepare":"npm run clean && npm run lint && npm run build && npm run coverage"},"keywords":["webpack","loader","style","css","sass","scss","less","stylus","inject","resource","variable","mixin"],"repository":{"type":"git","url":"git+https://github.com/ben-lau/style-resources-loader.git"},"homepage":"https://github.com/ben-lau/style-resources-loader","bugs":{"url":"https://github.com/ben-lau/style-resources-loader/issues"},"dependencies":{"glob":"^7.2.0","loader-utils":"^2.0.0","schema-utils":"^2.7.0","tslib":"^2.3.1"},"devDependencies":{"@commitlint/cli":"^15.0.0","@commitlint/config-conventional":"^15.0.0","@types/glob":"^7.2.0","@types/is-promise":"^2.2.0","@types/jest":"^27.0.3","@types/loader-utils":"^2.0.3","@types/node":"^16.11.12","@types/webpack":"^4.41.25","@types/webpack-merge":"^5.0.0","@typescript-eslint/eslint-plugin":"^5.6.0","@typescript-eslint/parser":"^5.6.0","coveralls":"^3.1.1","cross-env":"^7.0.3","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^4.0.0","husky":"^7.0.4","jest":"^27.4.3","lint-staged":"^12.1.2","prettier":"^2.5.1","raw-loader":"^4.0.2","ts-jest":"^27.1.0","typescript":"^4.5.2","webpack":"^4.46.0","webpack-merge":"^5.8.0"},"peerDependencies":{"webpack":"^3.0.0 || ^4.0.0 || ^5.0.0"},"sideEffects":false,"gitHead":"be020146b8b67fe7bdb4fe58a68689ca9b297f3c","_id":"@ben_lau/style-resources-loader@1.5.2","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-ptFgoY2THf1LfmYp8jcQ5G2lt9uObx+giYli5Gix/b6XMh8dhBiGBTNFrzFb69OQJbxCEZNbY1v8iRuQJldAoA==","shasum":"d39af190497f5d440579d9550757a33fe64952f7","tarball":"https://registry.npmjs.org/@ben_lau/style-resources-loader/-/style-resources-loader-1.5.2.tgz","fileCount":65,"unpackedSize":48126,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGW+CSZdmiyTRQtnptrMRAm4gfyk/nyhmCZVgaDcEyphAiAqr0n9LqWOpKOh17obUk7DqYRFpgrIGrJ71AdLumbgjw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiiyuBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTnA/+NqU8Cr1P6Ex4N93+2fTuxVHefhdh+hFcXxujQgHKzNXFQshI\r\neNsBT+c2fLxSsQYX2pHj20x0+WX6kumsEmPB+Z7upF+3f0QboQ5oG5o4Cr3r\r\nGy4hV4qPTLUO2ltsPDCFWW9AFpi9XmzUkovf6NTUrVTxbJ3hNUx6e4+Z4xPM\r\n8jC2zPu3JnZcI7TwUw9tzVWgh7xnRCRFkHGqxQQx+BQh8pup5uX6gdlYcklN\r\nXagnbcG457v84Tz1a/6L4YMwTaRElBmcILTVIViS/cWleINs6OLi0xTf5g06\r\ndkCBYJkspuC42kYEi38w9VpRzyp3ecjEvhCOAkGMIemD4yq7qWsNVmu9ffl/\r\nFg2L5skNhObJ8TJGciRLbCts2wwFIHqigbo59SWr+kebGrDaGfWYez3TAdFG\r\nAfj6njUE2et6JQfyqywGRpMZ8i4VN2BBSknTYZC9KjQ0OVSQmZ/1POYHy4HE\r\nbMEVnIe6x3Yv7BOdlkDa8eCS8K8LNCXPF5yVE8aSqnsA6g1K+U474XU/nqNq\r\njpwkKTjEr4utcnOchFgZ/AbtCKG6a8Mid3ooXMCox6G/x8H50HgnUOtLv1rP\r\nVBAVGdBb1V2Lqs+hNhg0Gqt67YJMd94S6LcsIjQ36ZKMQ6Ff/gNlgelHLjXZ\r\nfAaI83PlonT435bSOqXt2G4RQJKD/Kh0RGU=\r\n=kN9X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ben_lau","email":"408736066@qq.com"},"directories":{},"maintainers":[{"name":"ben_lau","email":"408736066@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/style-resources-loader_1.5.2_1653287809412_0.08156989767220302"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-12T09:47:44.962Z","1.5.0":"2022-05-12T09:47:45.149Z","modified":"2022-05-23T06:36:49.663Z","1.5.1":"2022-05-13T09:34:44.473Z","1.5.2":"2022-05-23T06:36:49.581Z"},"maintainers":[{"name":"ben_lau","email":"408736066@qq.com"}],"description":"CSS processor resources loader for webpack","homepage":"https://github.com/ben-lau/style-resources-loader","keywords":["webpack","loader","style","css","sass","scss","less","stylus","inject","resource","variable","mixin"],"repository":{"type":"git","url":"git+https://github.com/ben-lau/style-resources-loader.git"},"author":{"name":"Ben Lau","email":"408736066@qq.com","url":"https://github.com/ben-lau"},"bugs":{"url":"https://github.com/ben-lau/style-resources-loader/issues"},"license":"MIT","readme":"[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![downloads][downloads]][downloads-url]\n[![build][build]][build-url]\n[![coverage][coverage]][coverage-url]\n[![996.icu][996.icu]][996.icu-url]\n\n<div align=\"center\">\n  <a href=\"https://github.com/webpack/webpack\">\n    <img\n        width=\"200\"\n        height=\"200\"\n        src=\"https://webpack.js.org/assets/icon-square-big.svg\"\n    >\n  </a>\n  <h1>Style Resources Loader</h1>\n  <p>CSS processor resources loader for webpack.</p>\n  <h2>Base on style resources loader but support resolve url and relative path</h2>\n</div>\n\n\n<h2 align=\"center\">Install</h2>\n\n```bash\nnpm i style-resources-loader -D\n```\n\n<h2 align=\"center\">Usage</h2>\n\nThis loader is a CSS processor resources loader for webpack, which injects your style resources (e.g. `variables, mixins`) into multiple imported `css, sass, scss, less, stylus` modules.\n\nIt's mainly used to\n - share your `variables, mixins, functions` across all style files, so you don't need to `@import` them manually.\n - override `variables` in style files provided by other libraries (e.g. [ant-design](https://github.com/ant-design/ant-design)) and customize your own theme.\n\n### Usage with Vue CLI\n\nSee [automatic imports](https://cli.vuejs.org/guide/css.html#automatic-imports) for more details.\n\n<h2 align=\"center\">Examples</h2>\n\nPrepends `variables` and `mixins` to all `scss` files with default resources injector.\n\n**webpack.config.js**\n``` js\nmodule.exports = {\n    // ...\n    module: {\n        rules: [{\n            test: /\\.scss$/,\n            use: ['style-loader', 'css-loader', 'sass-loader', {\n                loader: 'style-resources-loader',\n                options: {\n                    patterns: [\n                        './path/from/context/to/scss/variables/*.scss',\n                        './path/from/context/to/scss/mixins/*.scss',\n                    ]\n                }\n            }]\n        }]\n    },\n    // ...\n}\n```\n\nAppends `variables` to all `less` files and overrides original `less variables`.\n\n**webpack.config.js**\n```js\nmodule.exports = {\n    // ...\n    module: {\n        rules: [{\n            test: /\\.less$/,\n            use: ['style-loader', 'css-loader', 'less-loader', {\n                loader: 'style-resources-loader',\n                options: {\n                    patterns: path.resolve(__dirname, 'path/to/less/variables/*.less'),\n                    injector: 'append'\n                }\n            }]\n        }]\n    },\n    // ...\n}\n```\n\nPrepends `variables` and `mixins` to all `stylus` files with customized resources injector.\n\n**webpack.config.js**\n``` js\nmodule.exports = {\n    // ...\n    module: {\n        rules: [{\n            test: /\\.styl$/,\n            use: ['style-loader', 'css-loader', 'stylus-loader', {\n                loader: 'style-resources-loader',\n                options: {\n                    patterns: [\n                        path.resolve(__dirname, 'path/to/stylus/variables/*.styl'),\n                        path.resolve(__dirname, 'path/to/stylus/mixins/*.styl')\n                    ],\n                    injector: (source, resources) => {\n                        const combineAll = type => resources\n                            .filter(({ file }) => file.includes(type))\n                            .map(({ content }) => content)\n                            .join('');\n\n                        return combineAll('variables') + combineAll('mixins') + source;\n                    }\n                }\n            }]\n        }]\n    },\n    // ...\n}\n```\n\n<h2 align=\"center\">Options</h2>\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**[`patterns`](#patterns)**|`string \\| string[]`|`/`|Path to the resources you would like to inject|\n|**[`injector`](#injector)**|`Injector \\| 'prepend' \\| 'append'`|`'prepend'`|Controls the resources injection precisely|\n|**[`globOptions`](#globoptions)**|`GlobOptions`|`{}`|An options that can be passed to `glob(...)`|\n|**[`resolveUrl`](#resolveurl)**|`boolean`|`true`|Enable/Disable `@import` url and `url()` to be resolved|\n\nSee [the type definition file](https://github.com/yenshih/style-resources-loader/blob/master/src/types.ts) for more details.\n\n### `patterns`\n\nA string or an array of string, which represents the path to the resources you would like to inject. If the path is relative, it would relative to [webpack context](https://webpack.js.org/configuration/entry-context/).\n\nIt supports [globbing](https://github.com/isaacs/node-glob). You could include many files using a file mask.\n\nFor example, `'./styles/*/*.less'` would include all `less` files from `variables` and `mixins` directories and ignore `reset.less` in such following structure.\n\n```\n./src  <-- webpack context\n  /styles\n    /variables\n      |-- fonts.less\n      |-- colors.less\n    /mixins\n      |-- size.less\n    |-- reset.less\n```\n\nOnly supports `.css` `.sass` `.scss` `.less` `.styl` as resources file extensions.\n\n### `injector`\n\nAn optional function which controls the resources injection precisely. It also supports `'prepend'` and `'append'` for convenience, which means the loader will prepend or append all resources to source files, respectively.\n\nIt defaults to `'prepend'`, which implements as an injector function internally.\n\nFurthermore, an injector function should match the following type signature:\n\n```ts\ntype Injector = (\n    this: LoaderContext,\n    source: string,\n    resources: StyleResource[],\n) => string | Promise<string>\n```\n\nIt receives two parameters:\n\n|Name|Type|Description|\n|:--:|:--:|:----------|\n|**`source`**|`string`|Content of the source file|\n|**[`resources`](#resources)**|`StyleResource[]`|Resource descriptors|\n\nIt is called with `this` context pointing to the loader context.\n\n#### `resources`\n\nAn array of resource descriptor, each contains `file` and `content` properties:\n\n|Name|Type|Description|\n|:--:|:--:|:----------|\n|**`file`**|`string`|Absolute path to the resource|\n|**`content`**|`string`|Content of the resource file|\n\nIt can be asynchronous. You could use `async / await` syntax in your own injector function or just return a promise.\n\n### `globOptions`\n\nOptions that can be passed to `glob(...)`. See [node-glob options](https://github.com/isaacs/node-glob#options) for more details.\n\n### `resolveUrl`\n\nA boolean which defaults to `true`. It represents whether the relative path in `@import` or `@require` and `url()` statements should be resolved.\n\nIf you were to use `@import` or `@require` or `url()` statements in style resource files, you should make sure that the URL is relative to that resource file, rather than the source file.\n\nYou could disable this feature by setting `resolveUrl` to `false`.\n\n<h2 align=\"center\">License</h2>\n\n[MIT](http://www.opensource.org/licenses/mit-license.php)\n\n[npm]: https://img.shields.io/npm/v/@ben_lau/style-resources-loader.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/@ben_lau/style-resources-loader\n[node]: https://img.shields.io/node/v/@ben_lau/style-resources-loader.svg\n[node-url]: https://nodejs.org\n[downloads]: https://img.shields.io/npm/dm/@ben_lau/style-resources-loader.svg?style=flat-square\n[downloads-url]: https://www.npmjs.com/package/@ben_lau/style-resources-loader\n[build]: https://img.shields.io/travis/yenshih/style-resources-loader/master.svg?style=flat-square\n[build-url]: https://travis-ci.org/yenshih/style-resources-loader\n[coverage]: https://img.shields.io/coveralls/yenshih/style-resources-loader/master.svg?style=flat\n[coverage-url]: https://coveralls.io/github/yenshih/style-resources-loader?branch=master\n[996.icu]: https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg?style=flat-square\n[996.icu-url]: https://996.icu/#/en_US\n","readmeFilename":"README.md"}