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