cliffordp / cliff-wp-plugin-boilerplate

Cliff's WordPress plugin boilerplate
GNU General Public License v3.0
73 stars 25 forks source link

Consider moving from Parcel to Webpack #77

Closed cliffordp closed 4 years ago

cliffordp commented 4 years ago

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.

cliffordp commented 4 years ago

After playing with this a long while, the answer is 'no'... because:

For reference, we gave it the full effort: https://github.com/cliffordp/cliff-wp-plugin-boilerplate/pull/80/files

skorasaurus commented 4 years ago

I came across this, thanks for sharing! I've been assessing different building tools/setups for creating Gutenberg blocks.

cliffordp commented 4 years ago

Hi, @skorasaurus

Glad you found this. Let me know if there's anything I can do to help.

cliffordp commented 4 years ago

A neat little enqueue trick I found along the way, if using WP's webpack: https://github.com/WordPress/gutenberg/issues/18471#issuecomment-556076890