NativeScript / nativescript-dev-webpack

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

Support both platform specific and non-platform specific file with the same name #1084

Open Fatme opened 4 years ago

Fatme commented 4 years ago

Is your feature request related to a problem? Please describe. Currently it is not possible to have both platform specific and non-platform specific files within the application - for example, app.scss and app.android.scss. If app.android.scss file is changed, application is restarted on device but the changes are not applied.

To reproduce:

Option 1

  1. Create vue drawer application with version 6.1.4
  2. Update nativescript-dev-webpack and CLI to @rc version if v6.2.0 is still not released or to 6.2.0 if it is officially released.
  3. tns run android
  4. Change something in app.android.scss - application restarts but the change is not applied

Expected: The application shouldn't be restarted and the change should be applied.

Option 2

  1. Go to nativescript-ui-chart repo
  2. cd src && npm run setup
  3. cd ../demo && tns run android
  4. go to src > initializers > chart-initializers.android.ts and make any changes ( those are not being synced)

Current workaround: Change chart-initializers.ts file to be chart-initializers.d.ts