I try to add bower_components to my dev env, without copying whole bower_components folder to my dev env.
const wiredep = require('wiredep').streamreturn 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
bower_component
src
app
assets
index.html
gulp
assets.js
build.js
conf.js
inject.js
serve.js
bower.json
package.json
gulpfile.js
I intend to build dev environment from src and inject those dependencies to index.html
dist.dev
assets
css
js
img
fonts
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
I try to add
bower_components
to my dev env, without copying wholebower_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 toindex.html
After dependencies injection
bower_components
got linked toindex.html
but when I serve thedist.dev
folder I couldn't accessbower_components
folder outside ofdist.dev
Any idea how to approach this or this is not correct way to do it. Shoot me some idea. Thanks