{"name":"gatsby-1-config-css-modules","description":"CSS Modules configuration for Gatsby v1 plugins","version":"1.1.0-alpha.95fcd4af","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.95fcd4af","dist":{"shasum":"9512afa5ebb7c1cdc27e7e9464ea3937665f0e6d","tarball":"http://registry-npm.ywwl.com/gatsby-1-config-css-modules/download/gatsby-1-config-css-modules-1.1.0-alpha.95fcd4af.tgz","fileCount":6,"unpackedSize":3512,"integrity":"sha512-lWuxf/bZwvzCFFt8zWOgY9X2PSaZjL5PzLoZWkZ8vTfAI3da0662zNzzA11wfD7iTjAOeI6E+RdiXbLSSMF56w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEO7ffp3XrCAm9DeXCu9NneU5TtwnpTz0lsbzrj/hhGgIgSj7r7lqIR571E2WqDY+uHuy04zr7pPJW8BlUOF/MXOM="}],"size":1536,"noattachment":false,"key":"/gatsby-1-config-css-modules/-/gatsby-1-config-css-modules-1.1.0-alpha.95fcd4af.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.95fcd4af_1522290100297_0.34758235753193434"},"_hasShrinkwrap":false,"publish_time":1522290100380,"_cnpm_publish_time":1522290100380,"dist-tags":{"canary":"1.1.0-alpha.e9c3027b","latest":"1.0.11","next":"1.0.10-13"}}