{"library":"minify-graphql-loader","type":"library","category":null,"description":"A webpack loader that minifies GraphQL queries, mutations and fragments by stripping whitespace and reducing query length before bundling. Version 1.0.2 is the latest stable release. The loader must be chained after graphql-tag/loader (or similar) to first transform .gql/.graphql files into JavaScript, then minify them. Key differentiator: reduces bundle size by an average of ~17.5% per query. Targeted at Node.js >=10.0.0. The project is relatively stable with a small maintenance footprint.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","graphql","webpack","minify"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install minify-graphql-loader","imports":["module.exports = { module: { rules: [ { test: /\\.(graphql|gql)$/, use: ['graphql-tag/loader', 'minify-graphql-loader'] } ] } }","import loader from 'minify-graphql-loader'","use: ['graphql-tag/loader', 'minify-graphql-loader']"]},{"cmd":"yarn add minify-graphql-loader","imports":[]},{"cmd":"pnpm add minify-graphql-loader","imports":[]}],"homepage":"https://github.com/gabsprates/minify-graphql-loader#readme","github":"https://github.com/gabsprates/minify-graphql-loader","docs":null,"changelog":null,"pypi":null,"npm":"minify-graphql-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}