Nativescript-cli: Feature request: Configurable path/name to webpack.config.js

Created on 13 Sep 2018  路  4Comments  路  Source: NativeScript/nativescript-cli

Currently webpack.config.js is hardcoded in projectFilesManager.js:60

It would be great if nativescript-dev-webpack could read path to a file / name of the webpack file from nsconfig.json or as an argument to cli, like it happening with webpack, where you can specify --config /other/path/different-webpack.config.js

feature

Most helpful comment

In the current next version of CLI, you can set webpackConfigPath in your nsconfig.json. CLI will use the value and pass the path to --config option when starting the webpack process.
An example how to have a webpack configuration, that has a custom logic, can be found in this PR: https://github.com/NativeScript/nativescript-dev-webpack/pull/1116

All 4 comments

Great idea!

In the current next version of CLI, you can set webpackConfigPath in your nsconfig.json. CLI will use the value and pass the path to --config option when starting the webpack process.
An example how to have a webpack configuration, that has a custom logic, can be found in this PR: https://github.com/NativeScript/nativescript-dev-webpack/pull/1116

Available in nativescript-dev-webpack@next, will be officially shipped in [email protected]

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kefahB picture kefahB  路  3Comments

ZMW9 picture ZMW9  路  3Comments

trodellez picture trodellez  路  3Comments

bradmartin picture bradmartin  路  3Comments

donker picture donker  路  3Comments