You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(mypackage_demo_gh_pages is also opened like a package in the files view of DartEditor)
I investigated the problem and found
pub build doesn't copy assets like HTML and CSS files from the lib (or the dependency packages/mypackage) directory to the build output directory.
the web server integrated in DartEditor obviously still serves these files from packages directory outside of the build/web directory.
What is the expected output? What do you see instead?
pub build should copy asset files from lib/* to build/web/* (AFAIK this is planned)
When I open a page from build/web it should behave like it was deployed - no magic from the web server to resolve files from somewhere else should happen in this case.
What version of the product are you using? On what operating system?
Dart VM version: 1.2.0-dev.4.0 (Fri Feb 7 10:21:55 2014) on "linux_x64"
Please provide any additional information below.
mypackage_demo imports mypackage which has also asset files in lib which are also not copied to the build/web output directory.
The text was updated successfully, but these errors were encountered:
When I open a page from build/web it should behave like it was deployed - no magic from the web server to resolve files from somewhere else should happen in this case.
If you're using the editor's server, this will be fixed when it migrates to use "pub serve", which is issue #13591.
This issue was originally filed by @zoechi
What steps will reproduce the problem?
1.
I have an AngularApp with some HMTL and CSS files in the lib directory
2.
I run
pub build
and open the page in Chrome using http://127.0.0.1:3030/mypackage_demo/build/web/index.htmland the page runs fine.
3.
When I then copy mypackage_demo/build/web to mypackage_demo_gh_pages/build and open
http://127.0.0.1:3030/mypackage_demo_gh_pages/build/index.html
None of the asset files (HTML, CSS) from lib directory can be loaded.
(mypackage_demo_gh_pages is also opened like a package in the files view of DartEditor)
I investigated the problem and found
What is the expected output? What do you see instead?
pub build
should copy asset files from lib/* to build/web/* (AFAIK this is planned)What version of the product are you using? On what operating system?
Dart VM version: 1.2.0-dev.4.0 (Fri Feb 7 10:21:55 2014) on "linux_x64"
Please provide any additional information below.
mypackage_demo imports mypackage which has also asset files in lib which are also not copied to the build/web output directory.
The text was updated successfully, but these errors were encountered: