goldensun_html5
goldensun_html5 copied to clipboard
Write `webpack.config.js` in TypeScript
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!
I suppose this issue becomes moot the instant #306 is merged.
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.
If/when I do this, it should probably coincide with an update to Webpack in general -- we're currently 2 versions behind latest.
Sure! That would be awesome. The current bundling is very slow...
It'll result in a kind of interesting situation: there will be 3 tsconfig.json files, and some other things you might not expect.
One thing that you also may want to take into consideration is the fact that we'll be deploying it in Electron.
That shouldn't matter, as long as the dist directory looks the same after a build. But it's a good reminder; thanks.