Hello is there anyway you can stop moment.js from loading all the locales(I just need english) when your using webpack? I'm looking at the source it seems that if hasModule is defined which  it is for webpack then it always tries to require() e...
Say, for example, you are building a project on Backbone or whatever and you need to load scripts in a certain order, e.g. underscore.js needs to be loaded before backbone.js.  How do I get it to concat the scripts so that they’re in order?   //...
After installing gulp.js via npm, I receive a no command 'gulp' found error when running the gulp command from the same directory it was installed into.  When looking under the node_modules/.bin/ directory, I can see the gulp executable the...
I am trying to use gulp in order to minify a folder containing JS files. However, one of the files has the above error, preventing it from being minified.  I managed to catch and print the error, which I've partially printed here:  JS_Parse_Error...
I'm trying to dynamically create tasks (minify and concat) based on jsFiles object. The key will give the destination file name and the array contains the src files. When I run gulp I see all the tasks names being ran but it only writes the last...
I am using gulp.   I would like to having one or multiple JS files (say jQuery) to combine them in one, minify it, and write it to a distribution folder.   This is how I do it:   minifyJS(['/js/myModule.file1.js',           '/js/myModule....
So I am using gulp-exec (https://www.npmjs.com/package/gulp-exec) which after reading some of the documentation it mentions that if I want to just run a command I shouldn't use the plugin and make use of the code i've tried using below.  var...
I'd like to be able to add a watch task in gulp to all of the js files in the frontend/js and any other js files below   gulp.watch('./frontend/js/**/*.js', ['browserify']);   This will only target js files one folder deep...
When I have a file x.js that looks like this:  x.js  module.exports = function (n) { return n * 111 }   and I run browserify from the command line like so:  browserify -r ./x.js > bundle.js   I get an output file that looks like this (roughly):...
I'm using Gulp in my small project in order to run tests and lint my code. When any of those tasks fail, Gulp always exits with return code 0. If I run jshint by hand, it exits with non-zero code as it should.  Here's my very simple gulpfile....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.