gulp-file | Create vinyl files from a string or buffer and insert | Runtime Evironment library
kandi X-RAY | gulp-file Summary
kandi X-RAY | gulp-file Summary
Create vinyl files from a string or buffer and insert into the Gulp pipeline.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gulp-file
gulp-file Key Features
gulp-file Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-file
QUESTION
I use Gulp to merge a few javascripts as well as uglify them. When I tried to do it with countUp (can be other script as well) I've got an error.
Uncaught SyntaxError: Unexpected token 'export'
It tries to export the javascript back to the script tag. Now my javascript file is not just one script, but many.
How can I make it work? Is there a tool to convert it to common js or maybe a better way to include it with gulp?
ScriptA part of my gulp-file looks like below:
...ANSWER
Answered 2020-Feb-14 at 13:27You can use a gulp task to convert es6 modules to other types:
QUESTION
I'm new to using Azure DevOps. I continue to receive this error "Add-PnPApp : The request message was already sent. Cannot send the same request message multiple times."
Azure DevOps Release fails because of AddPnP error with "...same request".
Build shows version that changes my version (old) to a new version(gulp's version?). Image of build
I'm told that it could be the version that starts with zero because SharePoint doesn't like it. I can't seem to change the new version to 1.0.0.1 because it seems like it's being changed in the gulp-file.js. Is there something else that I am missing?
...ANSWER
Answered 2020-Feb-06 at 17:39Is it possible that you need the overwrite parameter in the AddPnP command? Or is it possible you would need to iterate the version between each release?
https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/add-pnpapp?view=sharepoint-ps
QUESTION
I want to use gulp-file-include
to assemble the index.html from different HTML files. The dist folder contains all production files. The problem is that gulp-watch
does not recognize if an HTML file has changed, so the HTML file in the dist folder will not be updated while I run watch.
How can I customize gulp so that gulp-watch
also detects these changes in real-time?
ANSWER
Answered 2019-Nov-19 at 13:10Try changing:
QUESTION
I have a new Windows 10 laptop and installed NetBeans 8.2 on it. I attempted to create a PHP project with existing sources, but this kept getting stuck at 40%. Trying again a number of times, rebooting, and removing and reinstalling NetBeans didn't help.
I need this project to work. So I removed NetBeans 8.2 and installed Apache NetBeans 11. I had the same problem when creating the project. Progress was stuck at 40% and there was a Java error (java.lang.NullPointerException) in the IDE log.
Googling the issue seemed to indicate I should try installing the JDK manually and setting its location in /etc/netbeans.conf. I did this and reopened Apache NetBeans. Attempting to create the project results in the same problem (progress stuck forever at 40%) and apparently the same IDE log:
...ANSWER
Answered 2019-Oct-02 at 07:06This is not an amswer; it's just some interim suggestions, and a request for further information which is too big to post as a comment.
- Don't use NetBeans 11.0, use the latest version, NetBeans 11.1 instead.
- You definitely don't need to uninstall other versions of NetBeans, though it is prudent to only run one version at a time.
It looks like you have activated PHP, but have you tried to create a trivial PHP project from scratch to verify that everything is installed correctly? If not:
First, if you haven't already done so, you need to specify a PHP interpreter to NetBeans: Tools > Options > PHP tab, then click the Browse... button for the PHP interpreter field, and navigate to your installation of
php.exe
. After that your screen should look similar to the screen shot shown below.Next, create a simple "Hello world" PHP application: File > New Project > PHP > PHP Application (N.B. not PHP Application with Existing Sources). Run that project. Does that work? If not, describe the problem, because that should work fine.
- If you can create and run a trivial PHP project then repeat your import "with Existing Sources" to see if the problem persists.
- If it does the next thing to try is to import a second PHP project which is trivial. That will determine whether the issue is general, or specific to the project in the OP. Either way, update your question to replace your listing of the IDE Log for NetBeans 11.0 with one for NetBeans 11.1. To be clear, I'm not suggesting that there is a problem with 11.0, but there is no reason not to use the latest version of NetBeans, unless you face some employer restriction.
- As a separate matter, one other thing you can try is to compare the IDE log for the machine where everything works with the one where you have problems, checking for potentially significant differences with your two NetBeans installations. A file comparison tool would help with that.
If you get stuck on anything, also see https://php.tutorials24x7.com/blog/how-to-install-netbeans-11-for-php-on-windows for general instructions on getting PHP set up on NetBeans.
What's the updated status if you tried the steps described above?
QUESTION
So, I recently had to update Gulp to version 4 with a bunch of code that has been running for years. The code simply adds together a bunch of files to build an angularJS app. I made a bunch of changes to rearrange the code and to add in the series command where needed. Now, the code runs without an error, but the scripts where the compiled code is to be placed are not written.
I am not sure if this is because none of the paths are recognized or because the gulp-file-insert or gulp-concat no longer work with version 4, or what. I am using the latest versions of those packages.
I tried messing with some of the paths such as src, dist, etc as shown below and I got an error which seemed to indicate that a file could not be found, so I am not sure of there are path issues somewhere or not.
Here is some of the code.
...ANSWER
Answered 2019-Jun-17 at 16:45First thing to fix:
QUESTION
I use gulp-file-include to combine many html file with the same header.
src/_header.html
...ANSWER
Answered 2019-May-25 at 07:25I tried a WORKAROUND , maybe there is a better solution. But for now try this....
src/_header.html
QUESTION
How to set the sass.compiler
property to use Dart Sass instead of Node Sass, when you are using gulpfile.babel.js
configuration file, instead of standard gulpfile.js
?
The latest gulp-sass documentation states:
"You can choose whether to use Dart Sass or Node Sass by setting the sass. compiler property."
To use node-sass we need to declare this for a gulpfile.js
:
ANSWER
Answered 2019-Mar-10 at 17:23No worries, I have the answer!
This in my new gulpfile.babel.js
:
QUESTION
I am trying to use gulp-file-include for include some common sections like header or footer from /src/includes
folder into any .html pages in a project tree along with BrowserSync to refresh changes.
When I use gulp
command from command line it's compiling all files into /dist
folder without problems (I hope). But after, if I change anything from /src/index.html
it doesn't reflect changes to browser or write changes into /dist/index.html
.
I can't figure out exactly where the problem is. You can see the project from this Git repo and here is my gulpfile.js
content:
ANSWER
Answered 2018-Aug-12 at 20:42I seem to have it working. I added the following to the end of the 'scripts'
and 'fileinclude'
tasks:
QUESTION
Let's say I have a JSON file with the pairs:
...ANSWER
Answered 2018-Mar-21 at 07:56I received the answer directly from the developer of the Gulp Token Replace plugin, so I'm answering my own question for archive purposes.
Replace this:
QUESTION
I am attempting to zip up all files in my dist folder using gulp-zip and would like to dynamically name the zip file after the only html file in that directory. Here's my attempt using gulp-filenames, but have had no luck.
...ANSWER
Answered 2018-Mar-14 at 03:48Here are two ways:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-file
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