aboutsummaryrefslogtreecommitdiff
path: root/config/webpack/rules/file.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-05-09 17:57:57 +0000
committerYamagishi Kazutoshi <ykzts@desire.sh>2022-09-11 16:05:01 +0000
commit64ee565b339eefbeb601200611f9fd08174135ef (patch)
tree6b33c9efa711ed0b820392f7eadd6bb9375ca6d7 /config/webpack/rules/file.js
parent0aacf00f5b77264537aa87fb8f78d7346feb1ec4 (diff)
downloadmastodon-deps/shakapacker.tar
mastodon-deps/shakapacker.tar.gz
mastodon-deps/shakapacker.tar.bz2
mastodon-deps/shakapacker.zip
Replace to shakapacker from webpackerdeps/shakapacker
Diffstat (limited to 'config/webpack/rules/file.js')
-rw-r--r--config/webpack/rules/file.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/config/webpack/rules/file.js b/config/webpack/rules/file.js
deleted file mode 100644
index f2fb58780..000000000
--- a/config/webpack/rules/file.js
+++ /dev/null
@@ -1,20 +0,0 @@
-const { join } = require('path');
-const { settings } = require('../configuration');
-
-module.exports = {
- test: new RegExp(`(${settings.static_assets_extensions.join('|')})$`, 'i'),
- use: [
- {
- loader: 'file-loader',
- options: {
- name(file) {
- if (file.includes(settings.source_path)) {
- return 'media/[path][name]-[hash].[ext]';
- }
- return 'media/[folder]/[name]-[hash:8].[ext]';
- },
- context: join(settings.source_path),
- },
- },
- ],
-};