code: 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 }
  }
docs: Generate options for file-loader
  @param {string} dir Asset sub-directory name
  @returns {{name:string, publicPath:string}} file-loader options