create-file-webpack
create-file-webpack copied to clipboard
[Feature Request] - Add the file at the beginning of the build process, not the end
I'm using this plugin to take a set of colours defined in JS and generate a Sass file with them.
It would be great if that file was created at the beginning of the build process so it can be imported by other Sass files.
I imagine this being a config option.
I'm happy to submit a PR if you could point me in the right direction, Thanks.
It looks like this will be as simple as changing which 'hook' it runs on - https://webpack.js.org/api/compiler-hooks/#hooks
I needed this feature in one of my projects so I forked and created a pull request for this. Hopefully the change is accepted by the mantainer (this is the first pull request for me!)
Hello there. I think I will have some time this weekend to merge a pull request with this change. Will keep you posted. Thanks!