Sha256: abf27c67c82e70903845dd573eadaf37f1f696feba25f23928564a4c4bb0a278
Contents?: true
Size: 707 Bytes
Versions: 2
Compression:
Stored size: 707 Bytes
Contents
const { dirname, join } = require('path') const { source_path: sourcePath } = require('../config') module.exports = { test: [ /\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/, /\.tiff$/, /\.ico$/, /\.avif$/, /\.webp$/, /\.eot$/, /\.otf$/, /\.ttf$/, /\.woff$/, /\.woff2$/, /\.svg$/ ], exclude: [/\.(js|mjs|jsx|ts|tsx)$/], type: 'asset/resource', generator: { filename: (pathData) => { const folders = dirname(pathData.filename) .replace(`${sourcePath}/`, '') .split('/') .slice(1) const foldersWithStatic = join('static', ...folders) return `${foldersWithStatic}/[name]-[hash][ext][query]` } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shakapacker-6.1.1 | package/rules/file.js |
shakapacker-6.1.0 | package/rules/file.js |