-
Notifications
You must be signed in to change notification settings - Fork 12k
index.html in another folder #2951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you change the |
One thing you can do is use the Like |
We don't support the scenario you're trying to do. The build system expects |
I was trying to achieve something similar, where it was being integrated into a legacy Symfony1 app where resources are stored in /resources/foo-app and the built js is in /js/foo-app/* and the index.html is a template that's routed by Symfony at domain.com/foo-app/. I managed to get it working using Gulp to make necessary adjustments. Here is an example of the task: gulp.task('foo-app-build', function(e){
gulp.src(['web/js/foo-app/index.html'])
.pipe(dom(function(){
var scripts = this.querySelectorAll('script[src]'),
i = scripts.length;
while(i--) {
var src = scripts[i].getAttribute('src');
scripts[i].setAttribute('src', '/js/foo-app/' + src);
}
return this;
}))
.pipe(insert.prepend('<?php decorate_with(false); ?>'))
.pipe(rename('indexSuccess.php'))
.pipe(gulp.dest('apps/admin/modules/foo-app/templates/'));
// For css resources such as icon fonts and svg's etc
gulp.src(['web/js/foo-app/styles.*.js'])
.pipe(replace(/\M\.exports=N\.p\+"/g, 'M.exports=N.p+"/js/foo-app/'))
.pipe(gulp.dest('web/js/foo-app/'))
.pipe(gzip())
.pipe(gulp.dest('web/js/foo-app/'))
});
}); Bit hacky but works |
@Meligy, --bh affects i need affect only |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Windows 8
Versions.
angular-cli: 1.0.0-beta.19-3
node: 6.8.0
os: win32 x64
Repro steps.
i have standard config with changes only in
src
/dist
folders and updated tsconfig.json references for it(not interested, it works fine).but i place
index.html
in${www}/
folder instead of${www}/frontend/processed/main.bundled/
The log given by the failure.
browser cannot download
scripts
/fonts
/icon
because they are in/frontend/processed/main.bundled/
subfolder.is it posible to talk angular-cli to use
frontend/processed/main.bundled/
prefix for processed references?i do not dound it in
schema.d.ts
Mention any other details that might be useful.
i do not want to place files in
${www}/
folder.i know about proxy ability. it is not suitable
The text was updated successfully, but these errors were encountered: