From beb652ee43588e4fbd084772d00a9c6966c346e8 Mon Sep 17 00:00:00 2001 From: Peter Jaszkowiak Date: Mon, 20 Feb 2017 00:44:04 -0700 Subject: [PATCH] Move `minifier.js` to `src/meta` --- src/meta/js.js | 4 +++- minifier.js => src/meta/minifier.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) rename minifier.js => src/meta/minifier.js (97%) diff --git a/src/meta/js.js b/src/meta/js.js index 60aa97d050..969239f0a8 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -13,6 +13,8 @@ var file = require('../file'); var plugins = require('../plugins'); var utils = require('../../public/src/utils'); +var minifierPath = path.join(__dirname, 'minifier.js'); + module.exports = function (Meta) { Meta.js = { @@ -236,7 +238,7 @@ module.exports = function (Meta) { winston.verbose('[meta/js] Minifying ' + target); var forkProcessParams = setupDebugging(); - var minifier = Meta.js.minifierProc = fork('minifier.js', [], forkProcessParams); + var minifier = Meta.js.minifierProc = fork(minifierPath, [], forkProcessParams); Meta.js.target[target] = {}; diff --git a/minifier.js b/src/meta/minifier.js similarity index 97% rename from minifier.js rename to src/meta/minifier.js index 25c0177175..5c47bc3e4e 100644 --- a/minifier.js +++ b/src/meta/minifier.js @@ -3,7 +3,7 @@ var uglifyjs = require('uglify-js'); var async = require('async'); var fs = require('fs'); -var file = require('./src/file'); +var file = require('../file'); var Minifier = { js: {}