nativescript-dev-webpack icon indicating copy to clipboard operation
nativescript-dev-webpack copied to clipboard

Support TS version of webpack config file - webpack.config.ts

Open qlonik opened this issue 7 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Allowing the Webpack configuration file to be type checked.

Describe the solution you'd like

It seems that webpack allows different configuration languages than just JS. Is it possible to let nativescript-dev-webpack plugin to support typescript? I found in the compiler.js file on the line 57, the config is hardcoded to be webpack.config.js. Maybe it is possible to let webpack to choose the config file, instead of hardcoding it?

Describe alternatives you've considered

Additional context

I simply tried to remove line 57 from compiler.js file installed in my node_modules and it worked without any problems.

qlonik avatar Dec 11 '18 21:12 qlonik

Will keep an eye on this. We'd also like the ability to either use typescript or rename webpack.config.js.

alexrosano avatar Apr 05 '19 15:04 alexrosano