Sha256: 5f1bea033f6be37bcd195f5b13a01777e517d27eb1001fb720f9421500f76806

Contents?: true

Size: 532 Bytes

Versions: 18

Compression:

Stored size: 532 Bytes

Contents

const { environment } = require('@rails/webpacker')

environment.loaders.get('file').test = /(.jpg|.jpeg|.png|.gif|.tiff|.ico|.eot|.otf|.ttf|.woff|.woff2)$/i
const svgFileLoaderOptions = environment.loaders.get('file').use.find((loader) => loader.loader === 'file-loader').options

module.exports = {
  test: /\.svg$/,
  oneOf: [
    {
      resourceQuery: /inline/,
      use: [
        'babel-loader',
        'vue-svg-loader',
      ],
    },
    {
      loader: 'file-loader',
      options: svgFileLoaderOptions,
    },
  ],
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
avo-0.4.10 config/webpack/loaders/vue-svg.js
avo-0.4.9 config/webpack/loaders/vue-svg.js
avo-0.4.8 config/webpack/loaders/vue-svg.js
avo-0.4.7 config/webpack/loaders/vue-svg.js
avo-0.4.6 config/webpack/loaders/vue-svg.js
avo-0.4.5 config/webpack/loaders/vue-svg.js
avo-0.4.4 config/webpack/loaders/vue-svg.js
avo-0.4.3 config/webpack/loaders/vue-svg.js
avo-0.4.2 config/webpack/loaders/vue-svg.js
avo-0.4.1 config/webpack/loaders/vue-svg.js
avo-0.3.2 config/webpack/loaders/vue-svg.js
avo-0.3.1 config/webpack/loaders/vue-svg.js
avo-0.2.5 config/webpack/loaders/vue-svg.js
avo-0.2.4 config/webpack/loaders/vue-svg.js
avo-0.2.3 config/webpack/loaders/vue-svg.js
avo-0.2.2 config/webpack/loaders/vue-svg.js
avo-0.2.1 config/webpack/loaders/vue-svg.js
avo-0.2.0 config/webpack/loaders/vue-svg.js