{"_id":"@dvhb/craco-extend-scope","_rev":"4-25a4fd23838e43d6b37f5501ed85b990","time":{"1.0.0":"2019-03-21T08:53:22.440Z","created":"2019-03-21T08:54:37.613Z","1.0.1":"2019-03-21T08:54:37.885Z","modified":"2022-04-05T06:10:15.245Z"},"name":"@dvhb/craco-extend-scope","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@dvhb/craco-extend-scope","version":"1.0.1","description":"An extend scope plugin for craco / react-scripts / create-react-app","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dvhb/craco-extend-scope.git"},"keywords":[],"author":"","license":"MIT","bugs":{"url":"https://github.com/dvhb/craco-extend-scope/issues"},"homepage":"https://github.com/dvhb/craco-extend-scope#readme","gitHead":"70cc45b303bc2cc3ca6ef8b45afafa82cb3ef7b7","_id":"@dvhb/craco-extend-scope@1.0.1","_nodeVersion":"8.12.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-u5s0ESOChHsKocCYLuqfNe4GgerfdUtFgyQ5XzAXK6lvyf3CMSPayFGfVCVPS6sqQLqKN+PAtVZdHkECIxoftQ==","shasum":"0a7698bfc5f2ed3b6de0b1a2b24cd29ae6979fab","tarball":"https://registry.npmjs.org/@dvhb/craco-extend-scope/-/craco-extend-scope-1.0.1.tgz","fileCount":11,"unpackedSize":19410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJck1FOCRA9TVsSAnZWagAAB7gQAIWj5R29mSr26qJIc/Ee\nx/MbhGVKyQUAv+IsR0/tC1PVuMYh2HV8lKDWVJEB+JSmovfY7UK3j93Ygj14\nwqrlEMxvXOzr8mw93YeFf0pugZNWdQaG69N+2wXPtp80uQS5v8VJ6bXhzYrD\nNvzAY3ABmnztTywO21Qdrp4PNhkz9qXbWoiZVlUr1zO1qoJpsKDlj2i/tbjb\noBZJ50BIDcE0Md7Y12PJ1AXatDJqOiriqrfCxmVTy8RX6LS9qlo+gXoSdWcg\nSNcCY7nRkotJEvBMMPTKgGbR+syT97BvbLBTD+6Z+Va1wKqERhx/cRT8opMK\nuMjZwCjGurv0OGz9Wr+RByw/Lu3b+mOL6TsB9+mrPvqQ60FM4W6fFfqtgQn1\nl9gL3F3uXKpBeUD4sIpUevv3lmFvEsJn0ocsViHKnfddGpAZCI3AoQjdK/pq\n3VXvW86CyU8OEhIXGiKwOKkMYnq8Y1ICXRzuposTRIVb6qQHCRYLD+VOI5KO\nPSeKTOUfii1c4EDJ+iACyHYjD2nzYiGRVW/Z4EAedTryuib6Ev6397AF+k0q\n3Zed+18o/C2hVsJogAzYykDbuuWveIIORnfISwkN1cyXM6GTxEsu2dX0dI6w\nanpiuO+haPtwIMk4Ceni1AAh1gGq7vaKdS7YuYpkQ+DW3zXGqa57BLaVgwau\n6UcQ\r\n=T86Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfcUjNEhCbUi2icAfnfv5jt0jq6N4am6iVU2AvM9D9CwIhAOHsUGL5cASo/rHn2ZZ4clZoafgedUtqRCbEQayqwl+F"}]},"maintainers":[{"name":"sairus2k","email":"sairus2k@gmail.com"},{"name":"r2d2dvhb","email":"r2d2@dvhb.ru"},{"name":"admindvhb","email":"admin@dvhb.ru"},{"name":"alexbee","email":"asu@dvhb.ru"}],"_npmUser":{"name":"sairus2k","email":"sairus2k@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/craco-extend-scope_1.0.1_1553158477778_0.9977674149239886"},"_hasShrinkwrap":false}},"maintainers":[{"name":"sairus2k","email":"sairus2k@gmail.com"},{"name":"r2d2dvhb","email":"r2d2@dvhb.ru"},{"name":"admindvhb","email":"admin@dvhb.ru"},{"name":"alexbee","email":"asu@dvhb.ru"}],"description":"An extend scope plugin for craco / react-scripts / create-react-app","homepage":"https://github.com/dvhb/craco-extend-scope#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/dvhb/craco-extend-scope.git"},"bugs":{"url":"https://github.com/dvhb/craco-extend-scope/issues"},"license":"MIT","readme":"# Craco extend scope plugin\n\nBy default [create-react-app](https://facebook.github.io/create-react-app/) don't allow you to import modules outside of\n `/src` dir, it throws error like this:\n`Relative imports outside of src/ are not supported`. This plugin extends CRA config to add custom paths to\n [ModuleScopePlugin](https://github.com/facebook/create-react-app/tree/master/packages/react-dev-utils#new-modulescopepluginappsrc-string--string-allowedfiles-string).\n\n## Supported Versions\n\n`craco-extend-scope` is tested with:\n\n- `react-scripts`: `^2.1.5`\n- `@craco/craco`: `^3.5.0`\n\n## Installation\n\nFirst, follow the [`craco` Installation Instructions](https://github.com/sharegate/craco/blob/master/packages/craco/README.md##installation)\nto install the `craco` package, create a `craco.config.js` file, and modify the scripts in your `package.json`.\n\nThen install `craco-extend-scope`:\n\n```bash\n$ npm i @dvhb/craco-extend-scope\n\n# OR\n\n$ yarn add @dvhb/craco-extend-scope\n```\n\n## Usage\n\nHere is a complete `craco.config.js` configuration file that extends scope of `create-react-app`:\n\n```js\nconst cracoExtendScope = require('./craco-extend-scope');\n\nmodule.exports = {\n  plugins: [{ plugin: cracoExtendScope, options: { path: 'static' } }]\n};\n```\n\nNow you can use absolute import in you code like this:\n```js\nimport 'static/styles.css';\n```\n","readmeFilename":"README.md"}