Skip to content

Commit

Permalink
Merge pull request #3 from abouthiroppy/feature/use-path-join
Browse files Browse the repository at this point in the history
Make use of path.join for cross-platform
  • Loading branch information
matthewd authored Dec 7, 2016
2 parents 0525952 + 80b881e commit 3faa6c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/install/config/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 3faa6c7

Please sign in to comment.