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
{{ message }}
This repository has been archived by the owner on Aug 7, 2018. It is now read-only.
I've forked the seed project and made some high level architectural changes to it (moving everything from project root into client). I need to accommodate a Node backend in the same repo. Once I got all the other gulp config bits properly transitioned to my subdirectory architecture it was still not working properly. In gulpfile.js I expected to be able to do
gulp.task('build',['compile-production'],function(){varroutes=require('./client/src/app/routes.json');// get the source paths of our routesroutes=routes.map(function(r){returnr.src;});varconfig={baseURL: 'client',main: 'app/app',routes: routes,bundleThreshold: 0.6,config: './client/system.config.js',sourceMaps: true,minify: false,mangle: false,dest: 'client/dist/app',destJs: 'client/dist/app/app.js'}returnrouteBundler.build(config);});
but the result is routeBundler dumping everything into client, when I expect it to go to client/dist. As a temporary fix, I've got system.config.js
set to 'baseURL': 'client' and then override it in index.html via System.config({'baseURL': ''}) ... I'm sure this is not the intention of the builder, but it seems that it does not run correctly when sourcing from a non-root directory. Feel free to clone my forked project and tinker in the event that I missed a configuration detail.
The text was updated successfully, but these errors were encountered:
I've forked the seed project and made some high level architectural changes to it (moving everything from project root into
client
). I need to accommodate a Node backend in the same repo. Once I got all the other gulp config bits properly transitioned to my subdirectory architecture it was still not working properly. Ingulpfile.js
I expected to be able to dobut the result is
routeBundler
dumping everything intoclient
, when I expect it to go toclient/dist
. As a temporary fix, I've gotsystem.config.js
set to
'baseURL': 'client'
and then override it inindex.html
viaSystem.config({'baseURL': ''})
... I'm sure this is not the intention of the builder, but it seems that it does not run correctly when sourcing from a non-root directory. Feel free to clone my forked project and tinker in the event that I missed a configuration detail.The text was updated successfully, but these errors were encountered: