const Path = require('path')

const config = require('../../config')

const ASSETS_SUBDIR = process.env.NODE_ENV === 'production'
  ? config.build.assetsSubDirectory
  : config.dev.assetsSubDirectory

module.exports = (path) =>
  Path.posix.join(ASSETS_SUBDIR, path)
