lib/utils/generate-file-loader-options.js
function generateFileLoaderOptions (dir) {
  const name = `assets/${dir}/[name]${store.state.config.fileNameHash ? '.[hash:8]' : ''}.[ext]`
  const publicPath = process.env.NODE_ENV === 'production' ? '..' : undefined

  return { name, publicPath }
}
function generateFileLoaderOptions (dir) {
  const name = `assets/${dir}/[name]${store.state.config.fileNameHash ? '.[hash:8]' : ''}.[ext]`
  const publicPath = process.env.NODE_ENV === 'production' ? '..' : undefined

  return { name, publicPath }
}
function generateFileLoaderOptions ( dir ) { const name = ` ${ dir } ${ store . state . config . fileNameHash ? '.[hash:8]' : '' } ` const publicPath = process . env . NODE_ENV === 'production' ? '..' : undefined return { name , publicPath } }
Generate options for file-loader
@param {string} dir Asset sub-directory name
@returns {{name:string, publicPath:string}} file-loader options
Generate options for file - loader