jasononeil / webpack-haxe-loader

Webpack loader for the Haxe programming language.
MIT License
38 stars 11 forks source link

require file hxml from a main javacript entry #1

Closed francescoagati closed 6 years ago

francescoagati commented 7 years ago

hi, if i have as entry a normal javascript file can i use something like this require('client.hxml') requre the file hxml directly from a main js?

jasononeil commented 7 years ago

If your normal JS file is processed through webpack then yes, this should work!

But I haven't actually tested it - let me know if it works okay.

I'll leave this open until we know it works On Mon, 12 Jun 2017 at 6:48 pm, francesco agati notifications@github.com wrote:

hi, if i have as entry a normal javascript file can i use something like this require('client.hxml') requre the file hxml directly from a main js?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jasononeil/webpack-haxe-loader/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AATPFkFgANMnH8MQ_oqIvbrBGm4xStqnks5sDPtfgaJpZM4N20Op .

elsassph commented 7 years ago

Yes it will work. You can even export classes/functions/objects using 'Webpack.export'.

jasononeil commented 6 years ago

Closing this as it does work :)