jondot / hygen

The simple, fast, and scalable code generator that lives in your project.
http://www.hygen.io
MIT License
5.68k stars 256 forks source link

Use hygen to Inject on same line #353

Open i-am-mani opened 2 years ago

i-am-mani commented 2 years ago

I am unable to find a way to add(inject) content starting from the same line. Is injecting on same line supported by hygen?

In the below example, i could replace the line 2 maybe, but i don't want to do that, this is just an example of common issue i come across often.

module.exports = {
  content: [], # I wish to add few paths inside this '[ ]' not after this or before this.
  theme: {
    extend: {},
  },
  plugins: [],
};
Kliton commented 2 years ago

+1

jondot commented 2 years ago

Next major version will include swaps. I'll use this issue for reference, thanks!