Compile HTML partials with gulp.js

Is there a plugin available for Gulp that does the same thing as Assemble does for Grunt? I would like to run a task for Gulp that assembles HTML partials, but I cannot find a plugin. Has anyone...

Angular Template cache not working

I have a project using gulp and angular. I want to click a button and a pop up containing the html to show. In the build.js file i have the following code: gulp.task('templates', function() { ...

NPM install fails with node-gyp

We are having problems running "npm install" on our project. A certain file cannot be found : fatal error C1083: Cannot open include file: 'windows.h' It appears to be coming from the node-gyp...

add git commit hash to javascript variables during gulp build

I am using gulp to build my angularjs application and want to somehow inject the latest git commit hash into my angular app so I can use it when debugging production issues. Even if it is just a...

Webpack/Gulp/Express error: No such file or directory

I have a project which consists of a file upload form, which uses an express router and jade/pug template rendering for 2 different views. I'm attempting to use webpack to compile all my...

Jade/Pug JSON interpolation with objects

I can't seem to find any sufficient documentation on the behavior of Pug with JSON interpolation. It seems that you can, but the methods I've found differ wildly and none do quite what I want. I'm...

npm install multiple package names

What does it do when I run this command: npm install --save-dev package1 package2 It is definitely not installing multiple packages, but it looks to be essential. (For example...

Compiling Foundation 6 with Gulp and gulp-ruby-sass

I'm learning Django, Foundation, Gulp, and SASS all at once. It's been tons of fun so far, but I've hit a brick wall now. I'm trying to compile Foundation 6 with Gulp. Foundation's documentation...

How can I set selected option selected in vue.js 2?

My component vue is like this : <template> <select class="form-control" v-model="selected" :required @change="changeLocation"> <option :selected>Choose Province</option> ...

How to work with hybrid webapp (MPA and SPA combined)

What are good practices about building a multiple page application using modern JS frameworks? Multiple page application In multiple page application we have multiple templates using some...

'router-outlet' is not a known element

I have a mvc 5 project with a angular frontend . I wanted to add routing as described in this tutorial https://angular.io/guide/router. So in my _Layout.cshtml I added a <base href="/"> and...

ion-card is not a known element

I am new to angular and Ionic. I am using "@angular/forms": "^4.3.1" "ionic-angular": "^3.5.3" I have installed the ionic-angular and @angular/forms package. I am getting the following error...

Vue warn: Failed to mount component: template or render function not defined

I am new to vuejs, I am getting following error: Error: [Vue warn]: Failed to mount component: template or render function not defined. found in ---> <Anonymous> <Vcinfo> at...

PDFMAKE: 'Roboto-Regular.ttf' not found in virtual file system ONLY AFTER GULP

I created a simple app using knockout/bootstrap/gulp that downloads a pdf using pdfMake.js. It works fine in debug mode using VS2017. After publishing and using gulp it gives this error when run:...

react js and existing Laravel project

I've searched internet and no where I've found a complete solution for what I'm trying to achieve. I'm trying to: Add react related modules to existing Laravel project. Use existing gulp file to...

ASP.NET Core on IIS just spinning

I have a React.NET frameworked app that lives in a ASP.NET Core that we're trying to place onto IIS. We have the base project responding to requests on the server, serving static resources, our...

Passing an argument to npm run script

I am creating a script in npm package.json. The script will run yeoman to scaffold my template and then I want to run a gulp task to do some more stuff to a specific file (inject using...

How to manage ASP.NET Core bundleconfig.json for multiple environments?

What's the best practice for using the ASP.NET Core bundleconfig.json with development versus production environments? The prior bundler (BundleCollection) would pay attention to the DEBUG...

Django how to use npm modules with static/ templates

I have recently added npm to my project in order to keep better track of my js dependencies. Previously I have just been git cloning to my static/vendor folder. I've also added gulp , but have...

Create separate template js files with Gulp

I am using Gulp and wondering if I could run one task to output separate template js files (build_general_js, see example...

I am getting python2 failed errors on npm install

I am getting errors when running npm install in windows powershell, I need to be using node version 8.11.1 so I am using nvm to do so. I tried downgrading to python 2.7 but that didn't work so I...

gulp-rev-rewrite not writing in all files

I have multiple files where i need to rename the hashed css from the manifest.json but i cant seem to get it to work. I have tried creating an array with multiple sources and destinations but i...

ReferenceError: Echo is not defined

I'm using laravel echo with pusher js to build a real-time feature in my app. I've done all the steps required as told by the doc. I've successfully set up the pusher configurations and it works...

where do I specify the node version in LifeRay studio project?

I have a portlet project that is using an angular app as client side. The build script is a gradle script that executes a npmInstall task through the ExecuteGulpTask plugin. The problem is that...

Trying to run babel : "cannot find module @babel/core"

I'm trying to set up a build environment to explore react. My build process uses gulp. I installed packages like this: npm install --save-dev [email protected] babel-core babel-preset-env After...

Generating full URLs on Eleventy and Netlify

I am working on an Eleventy based blog and website. Social media sharing features, like Facebook OpenGraph and Twitter cards, need to have a full absolute URLs to resources like images. Twitter...

How to render html with pug at runtime in a project served by gulp?

I am new to web development, and am using gulp for my project, which serves index.html page at build time. I am using pug as a template for generating html. gulfile.js const bundler = () => { ...

Webpack 'vue-loader' compilation issues with '@vue/compiler-sfc'

The Problem We're building a new application and have opted to go with a GULP and Webpack pipeline for compiling SCSS, Vue 3 and Typescript files. Unfortunately, I've spent the last day looking...

NPM update fails with make error 1 and exit code 2

I am running npm update for npm version 7.11.2 on Mac OS Catalina and I get the following error: $ npm update npm WARN deprecated [email protected]: Please see...

Angular 6 to 12 Migration: Getting Multiple Warning: Css Minimizer Plugin: > Unexpected "$"

After migrating my angular 6 project to 12. I am getting multiple warning in terminal if in angular.json i set optimisation: false configuration then all issue get resolved but i don't want to...