NativeScript / nativescript-dev-webpack

A package to help with webpacking NativeScript apps.
Apache License 2.0
97 stars 49 forks source link

feat: allow extending webpack.config.js through env #1116

Closed rosen-vladimirov closed 4 years ago

rosen-vladimirov commented 4 years ago

In case you need to extend the webpack.config.js, currently you cannot extend everything and you need to write a lot of custom logic. This PR adds the possibility to extend the appComponents, entries and alias through env. Also update demo applications to use latest CLI feature for extending webpack.config.js Merge after: https://github.com/NativeScript/nativescript-cli/pull/5216

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

rosen-vladimirov commented 4 years ago

test ngapps

rosen-vladimirov commented 4 years ago

test webpack-apps

rosen-vladimirov commented 4 years ago

test webpack-apps

dtopuzov commented 4 years ago

test webpack-apps branch#vladimirov/custom-configs

jibon57 commented 4 years ago

@rosen-vladimirov thanks for excellent feature. How I'll add custom file type in CopyWebpackPlugin?

rosen-vladimirov commented 4 years ago

Hey @jibon57 , I've created a sample application demonstrating how you can achieve this: https://github.com/rosen-vladimirov/appCustomWebpackConfig Check the README for more details.