text: const { readFileSync, writeFileSync } = require('fs')
  const { resolve } = require('path')
  const SVGO = require('../output-gitignore/webpack/SVGO') // need to `npm run script-pack` first to generate output
  
  const filepath = resolve(__dirname, 'test.svg')
  const data = readFileSync(filepath, 'utf8')
  
  const svgo = new SVGO()
  svgo.optimize(data, { path: filepath }).then((result) => {
    console.log(result)
    writeFileSync(resolve(__dirname, 'out-gitignore.webpack.svg'), result.data)
  })
  // {
  //   // optimized SVG data string
  //   data: '<svg width="10" height="20">test</svg>',
  //   // additional info such as width/height
  //   info: { width: '10', height: '20' },
  //   path: '.../test.svg'
  // }
  