gulp-useref | Parse build blocks in HTML files | Plugin library
kandi X-RAY | gulp-useref Summary
kandi X-RAY | gulp-useref Summary
Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets with useref. Inspired by the grunt plugin grunt-useref. It can handle file concatenation but not minification. Files are then passed down the stream. For minification of assets or other modifications, use gulp-if to conditionally handle specific types of assets.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add assets to the stream .
- Process assets .
- Adds additional stream to a stream
- Set callback .
- Get end .
- Handle end .
gulp-useref Key Features
gulp-useref Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-useref
QUESTION
After changing gulp 3 to 4 I receive the error when I try to run gulp build
:
ANSWER
Answered 2021-Nov-29 at 16:38In copy:css
you have this line:
paths.src.base + '/assets/css/argon.css'
where apparently your error is. The problem is your paths.src.base
is defined as
base: './'
to which you are adding /assets/css/argon.css
so you end up with
.//assets/css/argon.css
note the two leading backslashes.
Get rid of the leading backslash in the /assets/...
and check the rest of your code for the same problem.
Also since you are using gulp4 get rid of runSequence
- look at the documentation for gulp.series
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-useref
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page