-
Notifications
You must be signed in to change notification settings - Fork 11
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
custom haxe path #10
Comments
It currently uses An option could be added but then it is user/platform specific so the config isn't the right place for that. Haxe doesn't suggest a standard way to handle that. @jasononeil has started looking into using Haxe from npm - that makes it crossplatform. We should use it if it's specified in the |
thanks |
The other problem of using Haxe from npm is that we need to use haxelib from npm - quite a serious change of workflow. |
yes can be a big change. maybe the custom path can be another idea? |
Maybe support a user "rc" file, but we'd like to stick to something relatively standard... |
(also maybe I'm wrong about the requirement to use haxelib from npm) |
@elsassph @francescoagati I've been thinking about this some more, and the two tools I know of to load Haxe through NPM are https://yarnpkg.com/en/package/haxe and https://yarnpkg.com/en/package/haxeshim Both of these install the "binaries" to So theoretically we could just change the loader to detect if haxe is available in We could make it configurable as a string (take any path), as a "preferLocal" or "preferGlobal" boolean flag, or just have default behaviour to prefer local if available. What do you think about that approach? |
i think that the haxe path can be simple passed as parameter of haxe loader in the webpack config. |
I've just realised that any haxe installation used via NPM (so either https://www.npmjs.com/package/haxe or https://www.npmjs.com/package/haxeshim) will install to What this means is that you can be in an environment without haxe installed (or with an existing, incorrect version of haxe installed), and it will install a local haxe as part of installing NPM dependencies, and use that during the webpack build, with no extra change to the code necessary. I'll leave this issue open and mark it as "help wanted", because I think it's still worth having a configurable option, but at least using NPM packages is a suitable path forward for now. |
hi,
is possible use a custom path for the haxe compiler in the webpack config?
The text was updated successfully, but these errors were encountered: