-
-
Notifications
You must be signed in to change notification settings - Fork 40
Can't resolve '~/app' for cssFile
#587
Comments
cssFile
for the app using --bundle , is not respectedcssFile
using --bundle , is not respected
cssFile
using --bundle , is not respectedcssFile
using --bundle
cssFile
using --bundle cssFile
(problem only with --bundle )
cssFile
(problem only with --bundle )cssFile
Hi, @RoyiNamir! The
As you can see it looks for |
Update: Looks like we introduced some changes in NativeScript@6 that require changes in workaround provided by @sis0k0. The |
Uh oh!
There was an error while loading. Please reload this page.
Empty new project :
tns create aaa --ng
:We wanted to apply different GLOBAL CSS file according to some logic. ( css which includes different font names for different languages etc...)
So we did a small test just to check if applying a custom name ( not
app.css
butapp1.css
) is working :We've used the sample project :
tns create aaa --ng
& webpack (all latest versions )It DOES work (without
--bundle
).So you can see that Items are red :
BUT - Now we wanted to test with
--bundle
, so we've modified the webpack json file also to search forapp1.css
and notapp.css
(also modified
main.aot.ts
) with :However - running
tns run android --bundle
does NOT work :I've also tried with :
It run to completion but the
app1.css
file is not applied ( no reds here) :We've tried many variations :
But when I think about it , this ^ is not related - becuase if I do
cssFile:"app1.css"
without--bundle
then -app1.css
is respected.the problem is that it's not respected with
--bundle
None of them worked.
It seems that
app1.css
with--bundle
is not respected. Onlyapp.css
is respected.package.json
project sample : https://ufile.io/ge4to
[email protected]
Windows 10
The text was updated successfully, but these errors were encountered: