Skip to content

Commit

Permalink
Make use of path.join for cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Dec 7, 2016
1 parent 0525952 commit 80b881e
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 80b881e

Please sign in to comment.