Sha256: 5ba30ed7cc12dd7aa6fc2ec3b36d167ae9ed60dd472d431c98e4845a8a49a523

Contents?: true

Size: 302 Bytes

Versions: 8

Compression:

Stored size: 302 Bytes

Contents

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

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

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
mvpkit-2.0.2 project/config/webpack/loaders/assets.js
mvpkit-2.0.1 project/config/webpack/loaders/assets.js
mvpkit-2.0.0 project/config/webpack/loaders/assets.js
railman-1.0.6 templates/rails_app/config/webpack/loaders/assets.js
railman-1.0.5 templates/rails_app/config/webpack/loaders/assets.js
webpacker-2.0 lib/install/config/loaders/core/assets.js
railman-1.0.4 templates/rails_app/config/webpack/loaders/assets.js
webpacker-1.2 lib/install/config/loaders/core/assets.js