From 80b881eaffd190478b034fb978ff3ccf819837b4 Mon Sep 17 00:00:00 2001 From: abouthiroppy Date: Wed, 7 Dec 2016 22:06:46 +0900 Subject: [PATCH] Make use of path.join for cross-platform --- lib/install/config/shared.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/install/config/shared.js b/lib/install/config/shared.js index d14925675..2e0ac0ae7 100644 --- a/lib/install/config/shared.js +++ b/lib/install/config/shared.js @@ -5,9 +5,10 @@ var glob = require('glob') var _ = require('lodash') module.exports = { - entry: _.keyBy(glob.sync('../app/javascript/packs/*.js'), function(entry) { return path.basename(entry, '.js') }), + entry: _.keyBy(glob.sync(path.join('..', 'app', 'javascript', 'packs', '*.js')), + function(entry) { return path.basename(entry, '.js') }), - output: { filename: '[name].js', path: '../public/packs' }, + output: { filename: '[name].js', path: path.join('..', 'public', 'packs') }, module: { loaders: [