Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Add files to build sequence #108

Open
shanept opened this issue Nov 26, 2018 · 2 comments
Open

Add files to build sequence #108

shanept opened this issue Nov 26, 2018 · 2 comments

Comments

@shanept
Copy link

shanept commented Nov 26, 2018

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?

@stljeff1
Copy link

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.

@stljeff1
Copy link

The solution in this pull request works for me. I wonder if it can me merged...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants