graphql-min

1.0.1 • Public • Published

GraphQL minifier through tagged template

Converts your graphql query to minified one via babel plugin

in .babelrc, add

{
  "plugins": ["graphql-min/babel"]  
}
import gql from 'graphql-min';

const query = gql`{
  foo {
    bar {
      baz
    }
  }
}`

becomes

const query = `{foo{bar{baz}}}`

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.14latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.14
1.0.00

Package Sidebar

Install

npm i graphql-min

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

4.21 kB

Total Files

16

Last publish

Collaborators

  • nordsimon