-
-
Notifications
You must be signed in to change notification settings - Fork 40
feat(webpack-config): implement pass webpack config path #894
feat(webpack-config): implement pass webpack config path #894
Conversation
Hi @soarer1004 , In 6.0 (and probably shortly after that) there will be major change in the |
@KristianDD I was just about to submit a similar PR, albeit simpler (just exposing env.webpackConfig https://github.com/edusperoni/nativescript-dev-webpack/tree/custom-config), so I'll chime in. Usually when developing with webpack we have the choice to extend the default config or create multiple environments, like Since everything is in
So it would be useful to be able to specify the config at build time. I'm also against allowing to change it only in |
Thanks @soarer1004 , your input is really valuable for us. We'll keep this PR open and we'll take all your input when designing the way we'll improve the flexibility of using different and custom webpack.config.js files. |
Same problem here. I would like to specify the name of the webpack file only for improve the organization of the config. files of the project and to maintain the same naming convention |
I would love something like this for Svelte Native. Currently every nativescript update clobbers the webpack changes and I need to re-add the svelte-loader. It also prevents me from having svelte native usable as a |
Hey @soarer1004 , I'm closing this PR, but thanks for your time and effort! |
PR Checklist
What is the current behavior?
Currently
webpack.config.js
is hardcoded inprojectFilesManager.js:60
. There is no way to specify webpack config path/name.What is the new behavior?
Now there is way to specify webpack config path/name in
nsconfig.json
, for example:Implements #654.