{"name":"react-app-rewire-less-modules","version":"1.1.0","scripts":{"test":"jest"},"devDependencies":{"jest":"^21.2.1"},"dependencies":{"lodash.clonedeep":"^4.5.0","less":"^2.7.3","less-loader":"^4.0.5"},"peerDependencies":{"react-app-rewired":"^1.3.6"},"gitHead":"d82712436f7bdb4ddbecf2639d63fdb018e3843c","description":"Add [CSS Module](https://github.com/css-modules/css-modules) loaders to your [create-react-app](https://github.com/facebookincubator/create-react-app) via [react-app-rewired](https://github.com/timarney/react-app-rewired).","_id":"react-app-rewire-less-modules@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"andriijas","email":"andreas@klydd.se"},"dist":{"integrity":"sha512-2E92S5Ze8OUiEb0+6GYzLcTbpjzti4wmGSX6KIdb9sRDLq0KiildbOvINJfH4OBwZom4wkwXfboqi8BvMc1sxQ==","shasum":"632e37a7b21579528654498d22a56aef5670c321","tarball":"http://registry-npm.ywwl.com/react-app-rewire-less-modules/download/react-app-rewire-less-modules-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDmCHxylt0szt+l4nxTtD70NCqPIkeb1aaI/BfG/zko3QIgcngeOCLFZRaOR/msLoQ5wMOxTom4/29PMVOH1kNd1/0="}],"size":3640,"noattachment":false,"key":"/react-app-rewire-less-modules/-/react-app-rewire-less-modules-1.1.0.tgz"},"maintainers":[{"name":"andriijas","email":"andreas@klydd.se"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-app-rewire-less-modules-1.1.0.tgz_1512564189131_0.01620177016593516"},"directories":{},"readme":"# react-app-rewire-less-modules\n\nAdd Less and Less module support to\n[create-react-app](https://github.com/facebookincubator/create-react-app) 2.0 via\n[react-app-rewired](https://github.com/timarney/react-app-rewired).\n\n`Create react app 2.0` already supports CSS modules. This extension adds support for regular less files and *.module.less files.\n\n## Installation\n\n```\nnpm install --save-dev react-app-rewire-less-modules\n```\n\nOR\n\n```\nyarn add --dev react-app-rewire-less-modules\n```\n\n## Usage\n\nUse the following file extensions for any Less module styles:\n\n* `*.module.less`\n\nFiles with the following file extensions will load normally, without the CSS\nModules loader:\n\n* `*.less`\n\n### Example\n\nIn your react-app-rewired configuration:\n\n```javascript\n/* config-overrides.js */\n\nconst rewireLess = require(\"react-app-rewire-less-modules\");\n\nmodule.exports = function override(config, env) {\n  \n  config = rewireLess(config, env);\n  \n  // with loaderOptions\n  config = rewireLess.withLoaderOptions({\n      modifyVars: {\n        \"@primary-color\": \"#1890ff\",\n      },\n    })(config, env);\n\n  return config;\n};\n```\n\nIn your React application:\n\n```less\n// src/App.module.less\n\n.app {\n  color: aqua;\n\n  &:hover {\n    color: lawngreen;\n  }\n}\n```\n\n```jsx harmony\n// src/App.js\n\nimport React from 'react';\nimport styles from './App.module.less';\n\nexport default ({text}) => (\n    <div className={styles.app}>{text}</div>\n)\n```\n","publish_time":1512564190064,"_cnpm_publish_time":1512564190064,"dist-tags":{"latest":"1.3.0"}}