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 @@ ...@@ -62,8 +62,6 @@
"watchify": "^3.7.0" "watchify": "^3.7.0"
}, },
"browserify": { "browserify": {
"cache": {},
"packageCache": {},
"debug": true, "debug": true,
"transform": [ "transform": [
[ [
......
...@@ -33,7 +33,7 @@ const gulpUtil = require('gulp-util'); ...@@ -33,7 +33,7 @@ const gulpUtil = require('gulp-util');
*/ */
function _processOutDir(outputFile) { function _processOutDir(outputFile) {
"use strict"; "use strict";
let pathParts = outputFile.split('/'); let pathParts = outputFile.split('/');
let outFileName = pathParts[pathParts.length - 1]; let outFileName = pathParts[pathParts.length - 1];
pathParts.splice(pathParts.length - 1, 1); pathParts.splice(pathParts.length - 1, 1);
...@@ -52,7 +52,7 @@ function _processOutDir(outputFile) { ...@@ -52,7 +52,7 @@ function _processOutDir(outputFile) {
*/ */
export function bundleEs2015(inputFile, outFile, production) { export function bundleEs2015(inputFile, outFile, production) {
"use strict"; "use strict";
if (typeof outFile == 'string') { if (typeof outFile == 'string') {
outFile = _processOutDir(outFile); outFile = _processOutDir(outFile);
} }
...@@ -63,7 +63,13 @@ export function bundleEs2015(inputFile, outFile, production) { ...@@ -63,7 +63,13 @@ export function bundleEs2015(inputFile, outFile, production) {
inputFile = glob.sync('./spec/**/*.js'); inputFile = glob.sync('./spec/**/*.js');
} }
let bundler = browserify(inputFile); let bundler = browserify(
{
entries: inputFile,
cache: {},
packageCache: {}
}
);
if (!production) { if (!production) {
bundler = watchify(bundler); bundler = watchify(bundler);
...@@ -140,7 +146,7 @@ export function processLessFile(inputFile, outputFile) { ...@@ -140,7 +146,7 @@ export function processLessFile(inputFile, outputFile) {
*/ */
export function bundleEs2015Multiple(fileArray, production){ export function bundleEs2015Multiple(fileArray, production){
"use strict"; "use strict";
let outStream; let outStream;
for (let f of fileArray){ 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