Can't remove beginning of injected path using 'IgnorePath'
See original GitHub issueI’m trying to have gulp-inject, inject a bunch of JS files in my app.
My folder structure looks like this
gulpfile.js
app/
scripts/
index.html
The file comments that get injected look like this.
<script src="/app/scripts/app.js"></script>
However I need to remove the /app/ so the index.html file loads the .js files properly.
I’ve tried adding this {ignorePath: 'app'}
but it doesn’t seem to remove it from the inject comments.
Any ideas?
Issue Analytics
- State:
- Created 9 years ago
- Comments:35 (5 by maintainers)
Top Results From Across the Web
How to remove path prefix in gulp injected script paths?
By setting ignorePath in gulp.file.js with src/main/resources/static it will removes the prefix path in index.html.
Read more >gulp-inject - npm
Start using gulp-inject in your project by running `npm i gulp-inject`. ... By default the injected file paths are relative to each source ......
Read more >Contexts and Dependency Injection - Quarkus
A typical example is a bean injecting a portable extension. In such case, it's possible to exclude types and dependencies from the bean...
Read more >How I solved and debugged my Webpack issue through trial ...
My debugging journey started with the following setup: webpack.config.js ... const path = require('path');const HtmlWebpackPlugin ...
Read more >Uninstall Pop-up Ads program from your computer
This page is a comprehensive guide, which will remove Pop-up Ads from Internet Explorer,. Firefox and Google Chrome. Please perform all the steps...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This works for me:
oh, and you will also need to use inject’s {addRootSlash: false}.