taptapship / wiredep

Wire Bower dependencies to your source code.
MIT License
1.15k stars 142 forks source link

Cannot find bower_components after inject to index.html #272

Closed srettha closed 4 years ago

srettha commented 7 years ago

I try to add bower_components to my dev env, without copying whole bower_components folder to my dev env. const wiredep = require('wiredep').stream return gulp.src(path.join(conf.path.src, '/index.html')) .pipe(wiredep()) .pipe(gulp.dest(path.join(conf.path.devDist, '/serve/')))

so this is how project structure look like

I intend to build dev environment from src and inject those dependencies to index.html

After dependencies injection bower_components got linked to index.html but when I serve the dist.dev folder I couldn't access bower_components folder outside of dist.dev Any idea how to approach this or this is not correct way to do it. Shoot me some idea. Thanks