{"name":"gatsby-1-config-css-modules","description":"CSS Modules configuration for Gatsby v1 plugins","version":"1.1.0-alpha.5421f383","author":{"name":"Ming Aldrich-Gan","email":"mingaldrichgan@gmail.com"},"bugs":{"url":"https://github.com/gatsbyjs/gatsby/issues"},"dependencies":{"@babel/runtime":"^7.0.0-beta.42"},"devDependencies":{"@babel/cli":"^7.0.0-beta.42","@babel/core":"^7.0.0-beta.42","cross-env":"^5.1.4"},"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/tree/master/packages/gatsby-1-config-css-modules"},"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.onCreateWebpackConfig = ({ 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.5421f383","dist":{"shasum":"6dc70f34b1b3c5064ee43f91617d2086b6f38120","tarball":"http://registry-npm.ywwl.com/gatsby-1-config-css-modules/download/gatsby-1-config-css-modules-1.1.0-alpha.5421f383.tgz","fileCount":6,"unpackedSize":3512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2Y4TCRA9TVsSAnZWagAAMjwP/AmesBcMTCgGGzCXTecq\n7DCD78ySDeYCGjJmdJraX7iTEPoMypYjgfMucEO5q3E37K92G1rBz80kciOZ\nEQ4w0zA8Yu5dqiqG3twzQWZBcsfQEyQVQJNfYSrIRKe2G6+tPn6e18n8NctJ\nBTCFbVBeaVMnCnynjkP4kHg/Z6bXgRClcUx+xrjIzMqtrHrEN69fmmM9G2uK\nB9s1KEVcwJs7EnFWKewJ8GyyGrNO4RqNGotRKA5Ao2ekquGiTQjON/zm00fZ\nPOmExS8KcGQZX+IQnXk3NV2sbOFYZ1Ae74+Yc0BfXg5yYtUs6ATvjGjrcf+5\nIsxg71UlLWyG0zTDf1BTUlOKgu3fM6DQzqYpQH7P1UwjRTiiNcMWBNtwD25x\nHE3ends33S8PaO98VybrnPdLMssP8caZZBWlWnRIkqwSq6vb/io3pmPGJIY2\nIgwTsnaecDFOMeLBVQ1Yf3iL39/LJxbOZ+zllt83tbG6zqBhNWjhnmQ+Gzfy\nLd7rGOVNLdE9DMswjBt2d5VQXy7D34uXtECL49zI5nepCphSdFWC4YlVlS3v\nJlZt434lP3O95Q+BXvqGOCG6tZZDradhfCakh/+jlE/x1xQi3c1gX3xsVThp\nfFa+zW7ykZygEh8MlGqMuSoIAUxx+VTETy3UdpnbBo3kj8tyO2/06mNvSIVg\n4hqT\r\n=8ZT7\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-BAnOQC+sS+RYCO3/jbldukfXzoq2jAcwaM9SiFiB4r0psVtWMlAL0Eml6G/7RlBmBWSBKOfv392RbnmnF/dRxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmzCSOJ4tgUw69lhAhEax7KEklMqLn+o0weyOT7MkMMQIhAPrGrLVYQBCdjekZiC5a5CgMcJv7LWPjfhA7Z/BcsX9R"}],"size":1538,"noattachment":false,"key":"/gatsby-1-config-css-modules/-/gatsby-1-config-css-modules-1.1.0-alpha.5421f383.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.5421f383_1524207123247_0.0921646193868979"},"_hasShrinkwrap":false,"publish_time":1524207123389,"_cnpm_publish_time":1524207123389,"dist-tags":{"canary":"1.1.0-alpha.e9c3027b","latest":"1.0.11","next":"1.0.10-13"}}