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?   //...
The following Gulpjs task works fine when editing files in the glob match:  // watch task. gulp.task('watch', ['build'], function () {     gulp.watch(src + '/js/**/*.js', ['scripts']);     gulp.watch(src + '/img/...
I have a gulp task that is attempting to convert .scss files into .css files (using gulp-ruby-sass) and then place the resulting .css file into the same place it found the original file. The problem is, since I'm using a globbing pattern, I don...
Consider the following two files:  app.js  import Game       from './game/game'; import React      from 'react'; import ReactDOM   from 'react-dom';  export default (absPath) => {   let gameElement = document.getElementBy...
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've been looking all over for this, found "similar" answers here, but not exactly what I want.  Right now if I want to test a single file with karma, I need to do fit(), fdescribe() on the file in question...  However, what I do want...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.