Open ChugunovRoman opened 6 years ago
Are you installing electron-webpack-ts? If you are, that could be what's preventing you from switching. All that package really does is install ts-loader
and fork-ts-checker-webpack-plugin
. So technically you could do it yourself and it should work.
Nevermind my last comment. I ended up making a pull request to allow this since it would default to ts-loader
if fork-ts-checker-webpack-plugin
is installed.
The only thing is that you can either choose the default two plugins, or your own custom ones.
If you'd like to check out the branch to test it, you'll have to compile the branch locally and install it from that directory.
Here are the steps.
// install lerna globally if you don't have it
yarn global add lerna
// then
git clone https://github.com/JM-Mendez/electron-webpack
cd electron-webpack
git checkout feat/custom-typescript-loaders
lerna bootstrap
BABEL_ENV=production yarn run compile
Then to install
yarn install path-to-electron-webpack/packages/electron-webpack
But hopefully this pr gets accepted.
Hello. I'm trying bundling the my electron app through electron-webpack. But electron-webpack is require ts-loader, because I use awesome-typescript-loader instead ts-loader:
My custom webpack config:
electron-webpack config in package.json
How I can use the awesome-typescript-loader with the electron-webpack?