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

Write webpack.config.js in TypeScript #402

Open
MilesBHuff opened this issue Apr 11, 2022 · 7 comments
Open

Write webpack.config.js in TypeScript #402

MilesBHuff opened this issue Apr 11, 2022 · 7 comments

Comments

@MilesBHuff
Copy link
Contributor

MilesBHuff commented Apr 11, 2022

Believe it or not: this is possible! You can call tsc directly in a package.json script, and then execute the result to start your Webpack build. A handy way to get all the features of TypeScript across your whole build pipeline!

@MilesBHuff
Copy link
Contributor Author

I suppose this issue becomes moot the instant #306 is merged.

@jjppof
Copy link
Owner

jjppof commented Apr 11, 2022

Well, for now, I don't have plans to merge #306. But I'm open make these changes or even update Webpack to a newer version. But I confess it's low priority (at least for me) right now.

@MilesBHuff
Copy link
Contributor Author

If/when I do this, it should probably coincide with an update to Webpack in general -- we're currently 2 versions behind latest.

@jjppof
Copy link
Owner

jjppof commented Apr 17, 2022

Sure! That would be awesome. The current bundling is very slow...

@MilesBHuff
Copy link
Contributor Author

It'll result in a kind of interesting situation: there will be 3 tsconfig.json files, and some other things you might not expect.

@jjppof
Copy link
Owner

jjppof commented Apr 17, 2022

One thing that you also may want to take into consideration is the fact that we'll be deploying it in Electron.

@MilesBHuff
Copy link
Contributor Author

That shouldn't matter, as long as the dist directory looks the same after a build. But it's a good reminder; thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants