-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Add External contents to webpack #6494
Conversation
generators/generator-base.js
Outdated
const to = `content/${targetFolder}/`; | ||
const webpackDevPath = `${CLIENT_WEBPACK_DIR}/webpack.common.js`; | ||
let assetBlock = ''; | ||
if(from || to) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldnt this be from && to
You have lint fail, make sure to run
|
dont create new PR just push your change commits into the same branch |
Thanks Deepu. Done with the changes and no lint issues as well. By the way when we will have next Jhipster minor release. If it is not immediate, Do we have any nightly builds available. This is required for me to publish the module. |
I cannot give you an ETA on this and unfortunately, we don't do nightly builds. I suggest you use the master branch in the meantime. |
Thanks. Currently I'am using local version of JHipster(with above changes) to work with PrimeNG module. But it cannot be published until JHipster released with above changes. If anybody tries to use the module then they are going to face below issues. i.e, Even users has to maintain the local version of Jhipster. sudheerj/generator-jhipster-primeng#4 I will also raise two more PRs to inject third party resources(one for index.html and other one for Vendor.SCSS). |
Look at https://github.com/geraldhumphries/generator-jhipster-elasticsearch-reindexer/blob/master/generators/app/index.js#L204-L210 |
Thanks Pascal. Is it the code snippet similar to above solves the issue of publishing module or the code snippets to work with multiple versions of JHipster. |
Let me explain a little bit:
By using this code snippet, you can publish your module now. All users who use your module, will be on the case 2. As soon as there is a new release of generator-jhipster, it should be in the case 1. Hope I'm clear. |
Thanks a lot Pascal for the detailed explanation. I will add this check to avoid this kind of errors. |
Please make sure the below checklist is followed for Pull Requests.
Travis tests are green
Tests are added where necessary
Documentation is added/updated where necessary
Coding Rules & Commit Guidelines as per our CONTRIBUTING.md document are followed