You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
I am writing a block that utilizes an external javascript library - progressbar.js
For this, I will need a script that I can load on the frontend that will execute the library upon each block. My preferred method would be to have a script where I can import progressbar.js, have my logic for executing on my elements, and I would like this to build and be in the dist directory so I may enqueue it with WordPress.
What I have noticed in attempting to do this, is that the scripts are implemented in a node dependency and don't appear to support this. Short of creating my own script to do this, I don't see any other options to achieve this preferred build method.
Can we have a configuration option for additional JS files during the start/run build sequences?
The text was updated successfully, but these errors were encountered:
Is there a working solution to this problem? I am new to webpack, and kinda new to ES6. I am also looking for a convenient way of compiling a js file for use on the frnt end.
I am writing a block that utilizes an external javascript library - progressbar.js
For this, I will need a script that I can load on the frontend that will execute the library upon each block. My preferred method would be to have a script where I can import progressbar.js, have my logic for executing on my elements, and I would like this to build and be in the dist directory so I may enqueue it with WordPress.
What I have noticed in attempting to do this, is that the scripts are implemented in a node dependency and don't appear to support this. Short of creating my own script to do this, I don't see any other options to achieve this preferred build method.
Can we have a configuration option for additional JS files during the start/run build sequences?
The text was updated successfully, but these errors were encountered: