René's URL Explorer Experiment


Title: Can't resolve '~/app' for `cssFile` · Issue #587 · NativeScript/nativescript-dev-webpack · GitHub

Open Graph Title: Can't resolve '~/app' for `cssFile` · Issue #587 · NativeScript/nativescript-dev-webpack

X Title: Can't resolve '~/app' for `cssFile` · Issue #587 · NativeScript/nativescript-dev-webpack

Description: 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 ...

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/NativeScript/nativescript-dev-webpack/issues/587

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can't resolve '~/app' for `cssFile`   ","articleBody":"Empty new project : `tns create aaa --ng` : \r\n\r\nWe wanted to apply _different_ GLOBAL CSS file according to some logic. ( _css which includes different font names for different languages etc..._)\r\n\r\nSo we did a small test just to check if applying a custom name ( not `app.css` but `app1.css`) is working  : \r\n\r\nWe've used the sample project : `tns create aaa --ng` & webpack (all latest versions )\r\n\r\n\r\n    //main.ts:\r\n    platformNativeScriptDynamic({\r\n                                    startPageActionBarHidden: false ,\r\n                                    cssFile:\"app1.css\"\r\n                                }) .bootstrapModule(AppModule);\r\n\r\n\r\n\r\n\r\nIt **DOES** work (without `--bundle`).\r\n\r\n![image](https://user-images.githubusercontent.com/2842123/41898360-80372024-7932-11e8-9540-b461e40a5afa.png)\r\n\r\n\r\n\r\nSo you can see that Items are red : \r\n\r\n \r\n![image](https://user-images.githubusercontent.com/2842123/41898400-a00f6ff0-7932-11e8-83f0-b6989aaecc72.png)\r\n\r\n\r\n\r\n**BUT** - Now we wanted to test with `--bundle` ,[ so we've modified the webpack json file also to search for `app1.css` and not `app.css`](https://gist.github.com/RoyiNamir/134ecdd9a28a01aa2bbfe2348c81a939#file-webpack-config-js-L163-L179)\r\n\r\n\r\n(also modified `main.aot.ts`) with : \r\n\r\n    import { setCssFileName } from \"application\";\r\n    setCssFileName(\"./app1.css\");\r\n\r\nHowever - running `tns run android --bundle` does NOT work  : \r\n\r\n![image](https://user-images.githubusercontent.com/2842123/41898550-0086704a-7933-11e8-8191-fe0b97c59ff5.png)\r\n\r\n```\r\nERROR in ../node_modules/nativescript-dev-webpack/load-application-css-angular.js\r\nModule not found: Error: Can't resolve '~/app' in 'C:\\Users\\sff\\Desktop\\delme1\\ddd\\node_modules\\nativescript-dev-webpack'\r\n @ ../node_modules/nativescript-dev-webpack/load-application-css-angular.js 5:49-65\r\n @ ./main.ts\r\n```\r\n\r\nI've also tried with : \r\n\r\n    import { setCssFileName } from \"application\";\r\n    setCssFileName(\"./app1.css\");\r\n\r\nIt run to completion but the `app1.css` file is not applied ( no reds here) : \r\n\r\n![image](https://user-images.githubusercontent.com/2842123/41898630-375b6b7a-7933-11e8-8b05-e834af796721.png)\r\n\r\n\r\nWe've tried many variations :\r\n```\r\n  cssFile:\"app1.css\"\r\n  cssFile:\"./app1.css\"\r\n  cssFile:\"~/app1.css\"\r\n  cssFile:\"/app1.css\"\r\n```\r\n\r\nBut when I think about it , this ^ is not related - becuase if I  do `cssFile:\"app1.css\"` **without** `--bundle` then  - `app1.css` is respected.\r\nthe problem is that it's not respected with `--bundle`\r\n\r\n\r\nNone of them worked.\r\n\r\n\r\n\r\nIt seems that `app1.css` with `--bundle` is not respected. Only `app.css` is respected.\r\n\r\n\r\n\r\n-------\r\n\r\n[package.json ](https://gist.github.com/411a3b7bae8d5f6a325b1797868ee379)  \r\nproject sample :  https://ufile.io/ge4to\r\n\r\nnativescript@4.1.1  \r\nWindows 10","author":{"url":"https://github.com/mid787","@type":"Person","name":"mid787"},"datePublished":"2018-06-26T08:25:30Z","url":"https://github.com/NativeScript/nativescript-dev-webpack/issues/587"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d59365e4-1a04-8b7d-0281-4d21bc26dce9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBCF6:2AAD2E:1B6AFAD:248EB95:6B016135
html-safe-noncecc82f369dec586f2f189a863a3988b9e1300a3567debb0b98c6d4da186cc8bf2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Y2OjJBQUQyRToxQjZBRkFEOjI0OEVCOTU6NkIwMTYxMzUiLCJ2aXNpdG9yX2lkIjoiMTM2NjExNzg0MTgyMDAxNjk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb0c194cac4ac0c5a8ddeaaaf2e5436239e7b999643380be0e341152d56489b29
hovercard-subject-tagissue:335710327
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-dev-webpack/587/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0bb75f858cb667f9058626e95064715ea873085b97b489a5cf7400f57a66b452/NativeScript/nativescript-dev-webpack/issues/587
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0bb75f858cb667f9058626e95064715ea873085b97b489a5cf7400f57a66b452/NativeScript/nativescript-dev-webpack/issues/587
og:image:altEmpty 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...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemid787
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-dev-webpack git https://github.com/NativeScript/nativescript-dev-webpack.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id54984270
octolytics-dimension-repository_nwoNativeScript/nativescript-dev-webpack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id54984270
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-dev-webpack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-dev-webpack/issues/587#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-dev-webpack%2Fissues%2F587
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-dev-webpack%2Fissues%2F587
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fnativescript-dev-webpack
Reloadhttps://github.com/NativeScript/nativescript-dev-webpack/issues/587
Reloadhttps://github.com/NativeScript/nativescript-dev-webpack/issues/587
Reloadhttps://github.com/NativeScript/nativescript-dev-webpack/issues/587
NativeScripthttps://github.com/NativeScript
nativescript-dev-webpackhttps://github.com/NativeScript/nativescript-dev-webpack
Codehttps://github.com/NativeScript/nativescript-dev-webpack
Issues82 (82)https://github.com/NativeScript/nativescript-dev-webpack/issues
Pull requests3 (3)https://github.com/NativeScript/nativescript-dev-webpack/pulls
Actionshttps://github.com/NativeScript/nativescript-dev-webpack/actions
Security and qualityhttps://github.com/NativeScript/nativescript-dev-webpack/security
Insightshttps://github.com/NativeScript/nativescript-dev-webpack/insights
https://github.com/NativeScript/nativescript-dev-webpack
Can't resolve '~/app' for cssFile https://github.com/NativeScript/nativescript-dev-webpack/issues/587#top
https://github.com/sis0k0
questionhttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/mid787
mid787https://github.com/mid787
on Jun 26, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#issue-335710327
https://user-images.githubusercontent.com/2842123/41898360-80372024-7932-11e8-9540-b461e40a5afa.png
https://user-images.githubusercontent.com/2842123/41898400-a00f6ff0-7932-11e8-83f0-b6989aaecc72.png
so we've modified the webpack json file also to search for app1.css and not app.csshttps://gist.github.com/RoyiNamir/134ecdd9a28a01aa2bbfe2348c81a939#file-webpack-config-js-L163-L179
https://user-images.githubusercontent.com/2842123/41898550-0086704a-7933-11e8-8191-fe0b97c59ff5.png
https://user-images.githubusercontent.com/2842123/41898630-375b6b7a-7933-11e8-8b05-e834af796721.png
package.json https://gist.github.com/411a3b7bae8d5f6a325b1797868ee379
https://ufile.io/ge4tohttps://ufile.io/ge4to
mid787https://github.com/mid787
on Jun 26, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1700766490
mid787https://github.com/mid787
on Jun 27, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1703177701
mid787https://github.com/mid787
on Jun 27, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1703178770
mid787https://github.com/mid787
on Jun 28, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1705579566
tsonevnhttps://github.com/tsonevn
NickIlievhttps://github.com/NickIliev
on Jul 3, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1713321306
sis0k0https://github.com/sis0k0
sis0k0https://github.com/sis0k0
NickIlievhttps://github.com/NickIliev
on Jul 4, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1716431075
https://github.com/sis0k0
sis0k0https://github.com/sis0k0
on Jul 4, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#issuecomment-402493680
https://github.com/sis0k0/ns-custom-global-csshttps://github.com/sis0k0/ns-custom-global-css
sis0k0https://github.com/sis0k0
questionhttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22question%22
on Jul 4, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1716452047
mid787https://github.com/mid787
completedhttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 4, 2018https://github.com/NativeScript/nativescript-dev-webpack/issues/587#event-1716504283
https://github.com/vakrilov
vakrilovhttps://github.com/vakrilov
on Aug 8, 2019https://github.com/NativeScript/nativescript-dev-webpack/issues/587#issuecomment-519479533
@sis0k0https://github.com/sis0k0
Herehttps://github.com/sis0k0/ns-custom-global-css/pull/1
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/nativescript-dev-webpack/issues/587
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-dev-webpack/issues/587
sis0k0https://github.com/sis0k0
questionhttps://github.com/NativeScript/nativescript-dev-webpack/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.