What would be the best way to store DB config (username, password) in an open source app that runs on node.js / Express? Two specific questions:   Shall I put it into a separate config.js file in /lib folder, for example, and never include it into th...
I am using requirejs. My main.js content is like following.  requirejs.config({     async: true,     parseOnLoad: true,     packages: [],     paths: {         jquery: 'https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min'     } });...
I'm using RequireJS on our site and before the files are deployed to production we are using rjs to minify the files. Currently I am creating several minified files, not a single file.  For better load times on our site we are also using multiple...
Im using RequireJS for my coding. I have one source base, but have few different frontends. These frontends should use different sets of modules, so I have to support few RequireJS configs, each for different product. Adding module to one config, cau...
In my Angular 6 project, in tsconfig.json and ts.config.spec.json I have this part:  "lib": [       "es2016",       "dom"     ]   What is dom for?   Official documentation here says: "... you can exclude declarations you d...
I am refactoring the JavaScripts of our project to use RequireJS for on-demand loading of required modules instead of adding a bunch of script tags to the HTML template.  We use a few libraries like jQuery, DataTables plugin for jQuery etc. and some...
I need some help with the CkEditor v4.5.7. When I try to manually add some source code with the elements I'll show below, the editor strips the /css text from the text/css line, when I switch from the source area, to the normal editor area.  Befo...
Hello I've built a custom Ghost theme for a blog I'm starting and I would like create a map on a static page using d3 but I am stuck loading the geo json data. D3.json requires the data be available via a URL and I haven't been able to fi...
Given the following gulpfile, I would expect the contents of the dist folder to be the contents of src/js/. Instead, the contents of dist is src/js/*.  var del = require('del'); var gulp = require('gulp'); var jshint = require('gu...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.