Site icon Hip-Hop Website Design and Development

@wordpress/scripts superior utilization

I’m making an attempt to get all of the JavaScript recordsdata that finish in .jsx and compile them into Javascript recordsdata that finish in .js in the identical listing, utilizing the @wordpress/sripts npm bundle.

That is the script I’ve in bundle.json:

"start:custom": "wp-scripts start /.*.jsx$/ --output-path=."

But it surely dosn’t work. What’s the issue? Cannot I exploit RagEx on this? or one thing else?