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

Config instruction for webpack #14

Closed
Kukks opened this issue Apr 12, 2017 · 6 comments
Closed

Config instruction for webpack #14

Kukks opened this issue Apr 12, 2017 · 6 comments

Comments

@Kukks
Copy link
Contributor

Kukks commented Apr 12, 2017

I'm migrating my Aurelia project to webpack and am unsure of how to hook this plugin in with 'awesome-typescript-loader'. Do you have any clues?

@Kukks
Copy link
Contributor Author

Kukks commented Apr 17, 2017

Created a simple webpack loader that uses the replaceInText func. Perhaps you should expose it in main as well?
https://www.npmjs.com/package/ts-nameof-loader

@dsherret
Copy link
Owner

dsherret commented Apr 24, 2017

Hey @Kukks, sorry for the long reply. That's awesome! Thanks for creating that loader! I exposed replaceInText. It's available now in v0.9.0. If you update ts-nameof-loader to use ts-nameof 0.9.0, I'll add a link to it in the readme here if that's alright.

@Kukks
Copy link
Contributor Author

Kukks commented May 9, 2017

Go for it! :) I bumped up the version and used the exposed replaceInText func just now. @dsherret

@dsherret
Copy link
Owner

I'm just going to reopen this to remind myself to update the readme soon.

@dsherret dsherret reopened this May 11, 2017
dsherret referenced this issue May 12, 2017
Also updated to TS 2.3.
@dsherret
Copy link
Owner

Done. Updated the readme in 0.9.1 to include a link to ts-nameof-loader. Thanks a lot man!

@dsherret
Copy link
Owner

Note that ts-loader and awesome-typescript-loader now both support passing in custom transformers so the ts-nameof-loader plugin should no longer be required.

The following instructions should work now:

https://github.com/dsherret/ts-nameof/blob/master/setup/webpack.md

cc @Kukks

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

2 participants