{"name":"node-sass-glob-importer","description":"Custom node-sass importer to allow you to use glob syntax in imports","keywords":["node-sass","sass"],"version":"0.1.0","author":{"name":"Markus Oberlehner"},"homepage":"https://github.com/maoberlehner/node-sass-glob-importer","license":"MIT","repository":{"type":"git","url":"git+https://github.com/maoberlehner/node-sass-glob-importer.git"},"bugs":{"url":"https://github.com/maoberlehner/node-sass-glob-importer/issues"},"dependencies":{"glob":"^7.0.5","unique-concat":"^0.2.2"},"devDependencies":{"chai":"^3.5.0","chai-as-promised":"^5.3.0","eslint":"^3.1.1","eslint-config-modularis":"0.0.1","eslint-plugin-import":"^1.12.0","mocha":"^2.5.3","node-sass":"^3.8.0","pre-git":"^3.10.0","rollup":"^0.34.1","rollup-plugin-buble":"^0.12.1"},"main":"dist/index.js","jsnext:main":"js/index.js","scripts":{"scripts:lint":"eslint js/index.js","scripts:bundle":"rollup --config --format cjs --output dist/index.js js/index.js","scripts":"npm run scripts:lint && npm run scripts:bundle","test":"mocha"},"config":{"pre-git":{"pre-commit":["npm run scripts:lint"],"pre-push":["npm test"]}},"gitHead":"045987d91329cd59a67af410f8de96612296aa47","_id":"node-sass-glob-importer@0.1.0","_shasum":"2af0043ac73f3fd999aeb124f8455bc481fa87bc","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"maoberlehner","email":"markus.oberlehner@gmail.com"},"dist":{"shasum":"2af0043ac73f3fd999aeb124f8455bc481fa87bc","tarball":"http://registry-npm.ywwl.com/node-sass-glob-importer/download/node-sass-glob-importer-0.1.0.tgz","integrity":"sha512-iQgjwUgqqq7lrKDiiSNw3Gypbg/walm82lKVP26Td0UPaVYlxmr+MS1OpQEjHfASQTdsveRsijiyukkak4QaBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA7LNgkHzdNUFx8x0w7T9KnHS/ISgPaA20S+wfraPVU/AiAviewsOwoG7NF4b4+3lo35A4CFboNKqJ0rklSIXUPz4A=="}],"size":4918,"noattachment":false,"key":"/node-sass-glob-importer/-/node-sass-glob-importer-0.1.0.tgz"},"maintainers":[{"name":"maoberlehner","email":"markus.oberlehner@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/node-sass-glob-importer-0.1.0.tgz_1470066451996_0.9354795946273953"},"directories":{},"readme":"# node-sass-glob-importer\n\n[![Patreon](https://img.shields.io/badge/patreon-donate-blue.svg)](https://www.patreon.com/maoberlehner)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://paypal.me/maoberlehner)\n[![Build Status](https://travis-ci.org/maoberlehner/node-sass-magic-importer.svg?branch=master)](https://travis-ci.org/maoberlehner/node-sass-magic-importer)\n[![Coverage Status](https://coveralls.io/repos/github/maoberlehner/node-sass-magic-importer/badge.svg?branch=master)](https://coveralls.io/github/maoberlehner/node-sass-magic-importer?branch=master)\n[![GitHub stars](https://img.shields.io/github/stars/maoberlehner/node-sass-magic-importer.svg?style=social&label=Star)](https://github.com/maoberlehner/node-sass-magic-importer)\n\nCustom node-sass importer to which allows you to use glob syntax in imports\n\nGlobbing allows pattern matching operators to be used to match multiple files at once.\n\n```scss\n// Import all files inside the `scss` directory and subdirectories.\n@import: 'scss/**/*.scss';\n```\n\n## Usage\n\n```js\nconst sass = require('node-sass');\nconst globImporter = require('node-sass-glob-importer');\n\nsass.render({\n  ...\n  importer: globImporter()\n  ...\n});\n```\n\n### webpack\n\n```js\n// webpack.config.js\nconst globImporter = require('node-sass-glob-importer');\nconst MiniCssExtractPlugin = require('mini-css-extract-plugin');\n\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.scss$/,\n        use: [\n          {\n            loader: MiniCssExtractPlugin.loader,\n          },\n          {\n            loader: 'css-loader'\n          }, {\n            loader: 'sass-loader',\n            options: {\n              sassOptions: {\n                importer: globImporter()\n              }\n            }\n          }\n        ]\n      }\n    ]\n  },\n  plugins: [\n    new MiniCssExtractPlugin({\n      filename: 'style.css'\n    })\n  ]\n}\n```\n\n### CLI\n\n```bash\nnode-sass --importer node_modules/node-sass-glob-importer/dist/cli.js -o dist src/index.scss\n```\n\n## Upgrade from 3.x.x to 5.x.x\n\nIt is not possible anymore to set the `includePaths` option when initializing the importer. Use the [node-sass includePaths option](https://github.com/sass/node-sass#includepaths) instead.\n\n## Why is there no 4.x version?\n\nThis module is maintained in [one repository](https://github.com/maoberlehner/node-sass-magic-importer) together with multiple other node-sass custom importers. The node-sass-magic-importer repository is using a [monorepo approach](https://medium.com/@maoberlehner/monorepos-in-the-wild-33c6eb246cb9) with fixed versions for all packages. The projects maintained in the node-sass-magic-importer monorepo started out as separate repositories with separate versioning, so when they were integrated into the monorepo, the versions of all projects were raised to 5.0.0 and are in sync since then.\n\n## node-sass-magic-importer\n\nThis module is powered by [node-sass-magic-importer](https://github.com/maoberlehner/node-sass-magic-importer).\n\n## About\n\n### Author\n\nMarkus Oberlehner  \nWebsite: https://markus.oberlehner.net  \nTwitter: https://twitter.com/MaOberlehner  \nPayPal.me: https://paypal.me/maoberlehner  \nPatreon: https://www.patreon.com/maoberlehner\n\n### License\n\nMIT\n","publish_time":1470066454058,"_cnpm_publish_time":1470066454058,"dist-tags":{"latest":"5.3.3"}}