Closed gillez closed 3 years ago
You can add 'may-exclude' as a second argument to require
. That tells pkg 'this is fine'.
Thanks Igor, that works fine. Great answer. :)
I think it would be worth adding this info to the README file for others in future.
I don't like names must-exclude
and may-exclude
. They do not mean that. The file is not followed rather excluded. It may be included if it is followed from another require
or package.json.assets.
Also, future-proof and lazy-cache-proof solution is needed like pkg-must-exclude
, that ignores if a value does not start with pkg-
. https://github.com/jonschlinkert/center-align/blob/0.1.3/utils.js#L28
Also, path.resolve
similar to path.join
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label
This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.
Hi,
I get the following warning when compiling my code:
I understand the reason for this and what I need to do. As it says in the manual:
your code may have require(variable) calls. Such cases are not handled by pkg. So you must specify the files - scripts and assets - manually in a config.
I have added server_code.js/local_code.js to the "pkg/asset" section of my package.json and the output file works fine. I'm just wondering if there's a way to get rid of the warning message? I.e. can I tell pkg "this line is fine, I've added the file to assets, you don't need to warn me"?