@wordpress/scripts advanced usage

Question

I am trying to get all the JavaScript files that end in .jsx and compile them into Javascript files that end in .js in the same directory, using the wordpress user/scripts">wordpress user/sripts npm package.

This is the script I have in package.json:

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

But it dosn’t work. What’s the problem? Can’t I use RagEx in this? or something else?

0
Ayo Reis 3 weeks 2021-09-03T12:57:58-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse