Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include copy externals as Webpack hook #3

Open
zmrhaljiri opened this issue May 27, 2019 · 0 comments
Open

Include copy externals as Webpack hook #3

zmrhaljiri opened this issue May 27, 2019 · 0 comments
Labels
feature request New feature or request

Comments

@zmrhaljiri
Copy link
Owner

zmrhaljiri commented May 27, 2019

The NPM script copy.externals is used to copy files from externals/ folder into the dist/ folder.

Currently, due Webpack plugin is cleaning the dist folder automatically before compilation, it's needed to exclude the externals/ folder from the plugin configuration + specify the task as a separate NPM script that's run before the NPM webpack script.

A suggestion is to use the copy task as a Webpack hook, after each compilation. More specifically, after the dist/ folder is cleaned up, copy the external files there.

@zmrhaljiri zmrhaljiri added the feature request New feature or request label May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant