Skip to content
Snippets Groups Projects
Commit b145667f authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

move cache back into browserify config

parent d896d6d3
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,6 @@
"watchify": "^3.7.0"
},
"browserify": {
"cache": {},
"packageCache": {},
"debug": true,
"transform": [
[
......
......@@ -33,7 +33,7 @@ const gulpUtil = require('gulp-util');
*/
function _processOutDir(outputFile) {
"use strict";
let pathParts = outputFile.split('/');
let outFileName = pathParts[pathParts.length - 1];
pathParts.splice(pathParts.length - 1, 1);
......@@ -52,7 +52,7 @@ function _processOutDir(outputFile) {
*/
export function bundleEs2015(inputFile, outFile, production) {
"use strict";
if (typeof outFile == 'string') {
outFile = _processOutDir(outFile);
}
......@@ -63,7 +63,13 @@ export function bundleEs2015(inputFile, outFile, production) {
inputFile = glob.sync('./spec/**/*.js');
}
let bundler = browserify(inputFile);
let bundler = browserify(
{
entries: inputFile,
cache: {},
packageCache: {}
}
);
if (!production) {
bundler = watchify(bundler);
......@@ -140,7 +146,7 @@ export function processLessFile(inputFile, outputFile) {
*/
export function bundleEs2015Multiple(fileArray, production){
"use strict";
let outStream;
for (let f of fileArray){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment