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

subfolders in ./js #128

Open
krempe-20 opened this issue Jul 21, 2021 · 6 comments
Open

subfolders in ./js #128

krempe-20 opened this issue Jul 21, 2021 · 6 comments

Comments

@krempe-20
Copy link

Is it possible to add all subfolders of ./js to the package creation?

Reagards,
Christoph

@gpeterso
Copy link
Contributor

Hi @krempe-20. If you use the gulp run --browserify option, you can import modules from subdirectories.

More info here and here.

@krempe-20
Copy link
Author

The problem is: I my case, this works for the "gulp run ...", but not for "gulp create-package". The package created contains none of the imported JS files. The imports in my mains.js look like

import { FuExportConfig } from './export/FuExport.component';

Regards,
Christoph

@krempe-20
Copy link
Author

As a workaround, I just created the zip file manualy, now it works after uploading the zip into the live system.

@gpeterso
Copy link
Contributor

Ah, gotcha. I neglected to mention that this option should work with the create-package task too. For example: gulp create-package --browserify --view CENTRAL_PACKAGE.

Jeff

@ajtag
Copy link

ajtag commented Jul 22, 2021 via email

@krempe-20
Copy link
Author

I tried gulp create-package --browserify --viewI MYVIEW, same result. The subdirectories in ./js are not include.

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

No branches or pull requests

3 participants