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}}}`

Readme

Keywords

none

Package Sidebar

Install

npm i graphql-min

Weekly Downloads

8

Version

1.0.1

License

ISC

Unpacked Size

4.21 kB

Total Files

16

Last publish

Collaborators

  • nordsimon