Closed cliffordp closed 4 years ago
After playing with this a long while, the answer is 'no'... because:
hot()
or import extra <script>
in the entry file's headerstyle.pcss.json
file generated alongside them, which is cruft. (Unsure which package/command was causing this, but it definitely seemed intentional.)For reference, we gave it the full effort: https://github.com/cliffordp/cliff-wp-plugin-boilerplate/pull/80/files
I came across this, thanks for sharing! I've been assessing different building tools/setups for creating Gutenberg blocks.
Hi, @skorasaurus
Glad you found this. Let me know if there's anything I can do to help.
A neat little enqueue trick I found along the way, if using WP's webpack: https://github.com/WordPress/gutenberg/issues/18471#issuecomment-556076890
We're already using Parcel (see #55), and it's working nicely, but WP uses Webpack so maybe we should, too:
Let's build things via Weback to compare not only the ease of use but also the file size of the resulting built files.