Sha256: 33c848e317cca6e58c9412647aee83799892a040916a0413674fe4302afd6aab

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

const { static_assets_extensions: fileExtensions } = require('../config')

module.exports = {
  test: new RegExp(`(${fileExtensions.join('|')})$`, 'i'),
  use: [
    {
      loader: 'file-loader',
      options: {
        name: 'media/[name]-[hash:8].[ext]'
      }
    }
  ]
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webpacker-4.0.0.rc.7 package/rules/file.js
webpacker-4.0.0.rc.6 package/rules/file.js