{"name":"gatsby-1-config-css-modules","description":"CSS Modules configuration for Gatsby v1 plugins","version":"1.1.0-alpha.b68b7f5c","author":{"name":"Ming Aldrich-Gan","email":"mingaldrichgan@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"^7.0.0-beta.38"},"devDependencies":{"@babel/cli":"^7.0.0-beta.38","@babel/core":"^7.0.0-beta.38","cross-env":"^5.0.5"},"homepage":"https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-1-config-css-modules#readme","keywords":["gatsby"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/gatsbyjs/gatsby.git"},"scripts":{"build":"babel src --out-dir . --ignore __tests__","prepublish":"cross-env NODE_ENV=production npm run build","watch":"babel -w src --out-dir . --ignore __tests__"},"readmeFilename":"README.md","readme":"# gatsby-1-config-css-modules\n\nCSS Modules configuration for Gatsby v1 plugins\n\n## Install\n\n`yarn add --dev gatsby-plugin-sass`\n\n## How to use\n\nExample from [`gatsby-plugin-sass`](../gatsby-plugin-sass/):\n\n```javascript\n// in gatsby-node.js\nconst { cssModulesConfig } = require(\"gatsby-1-config-css-modules\");\n\nexports.modifyWebpackConfig = ({ config, stage }, { precision }) => {\n  const sassFiles = /\\.s[ac]ss$/;\n  const sassModulesFiles = /\\.module\\.s[ac]ss$/;\n  const sassLoader = precision ? `sass?precision=${precision}` : `sass`;\n\n  switch (stage) {\n    case `develop`: {\n      config.loader(`sass`, {\n        test: sassFiles,\n        exclude: sassModulesFiles,\n        loaders: [`style`, `css`, sassLoader],\n      });\n\n      config.loader(`sassModules`, {\n        test: sassModulesFiles,\n        loaders: [`style`, cssModulesConfig(stage), sassLoader],\n      });\n      return config;\n    }\n\n    // etc.\n  }\n};\n```\n","_id":"gatsby-1-config-css-modules@1.1.0-alpha.b68b7f5c","dist":{"shasum":"d18b62bbc5aa15682afae2f62a625a4dcb9a1bc4","tarball":"http://registry-npm.ywwl.com/gatsby-1-config-css-modules/download/gatsby-1-config-css-modules-1.1.0-alpha.b68b7f5c.tgz","fileCount":6,"unpackedSize":3486,"integrity":"sha512-dWW7476CgZTuOUltqAYU3CiJ0u5l80yzC5nAvl4mRxUtGJhAXdkpdEakOK4yqY9EmTV/wAfrmmnaAGbj3rfWew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpauAvkOJwg/XFGOl7W5kL4+IrzXGI9RCBizv6QzBVZQIhAP2aQdf+8EX5n6i5YbXVCh5LsrwuLvZs0g+AAdgk9Vgl"}],"size":1539,"noattachment":false,"key":"/gatsby-1-config-css-modules/-/gatsby-1-config-css-modules-1.1.0-alpha.b68b7f5c.tgz"},"maintainers":[{"email":"mathews.kyle@gmail.com","name":"kylemathews"},{"email":"monastic.panic@gmail.com","name":"monastic.panic"}],"_npmUser":{"name":"kylemathews","email":"mathews.kyle@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-1-config-css-modules_1.1.0-alpha.b68b7f5c_1518732003259_0.8761841826285777"},"_hasShrinkwrap":false,"publish_time":1518732003310,"_cnpm_publish_time":1518732003310,"dist-tags":{"canary":"1.1.0-alpha.e9c3027b","latest":"1.0.11","next":"1.0.10-13"}}