Sha256: 36165ac727a5f3dd89821e20be7b1f654ab20e1bf197bae85d85b6f5cfe3e5be

Contents?: true

Size: 317 Bytes

Versions: 5

Compression:

Stored size: 317 Bytes

Contents

const { env, output } = require('../configuration.js')

module.exports = {
  test: /\.(jpg|jpeg|png|gif|svg|eot|ttf|woff|woff2)$/i,
  use: [{
    loader: 'file-loader',
    options: {
      publicPath: output.publicPath,
      name: env.NODE_ENV === 'production' ? '[name]-[hash].[ext]' : '[name].[ext]'
    }
  }]
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
webpacker-react-on-rails-3.0.0.rc.1 lib/install/config/loaders/core/assets.js
webpacker-react-on-rails-2.0 lib/install/config/loaders/core/assets.js
webpacker-legacy-0.1.2 lib/install/config/loaders/core/assets.js
webpacker-legacy-0.1.1 lib/install/config/loaders/core/assets.js
webpacker-legacy-0.1.0 lib/install/config/loaders/core/assets.js