-
-
Notifications
You must be signed in to change notification settings - Fork 621
[6.x] Webpack: Support configs written in non-JavaScript #697
Copy link
Copy link
Closed
Labels
enhancementhacktoberfestGood first issue to work on - particularly for HacktoberfestGood first issue to work on - particularly for Hacktoberfesthelp wantedplugin/webpackIssues or pull requests related to first-party webpack plugins/templatesIssues or pull requests related to first-party webpack plugins/templates
Metadata
Metadata
Assignees
Labels
enhancementhacktoberfestGood first issue to work on - particularly for HacktoberfestGood first issue to work on - particularly for Hacktoberfesthelp wantedplugin/webpackIssues or pull requests related to first-party webpack plugins/templatesIssues or pull requests related to first-party webpack plugins/templates
Type
Fields
Give feedbackNo fields configured for issues without a type.
Please describe your issue:
Webpack supports using config files written in other languages (such as typescript & coffeescript) without the need to compile those files into JS, provided the right tools are installed.
For example, doing
webpackwill work withwebpack.config.tsprovidedts-nodeis installed.These details are documented (here)[https://webpack.js.org/configuration/configuration-languages/].
It would be great if
@eletron-forge/webpacksupported this.Currently, if I have a
.tswebpack config, it doesn't get run thoughts-node.An acceptable compromise for me at this point would be to have some of pre-use hook that I could trigger compiling from; for example, being able to pass an npm command like
npm run build-configsto compile my configs before they're used.