FEMT: Add no-restricted-img-srcs rule (#105006)

This commit is contained in:
Tom Ratcliffe
2025-05-12 10:34:17 +01:00
committed by GitHub
parent 56cfeb8616
commit 8f17f607fa
49 changed files with 503 additions and 108 deletions

View File

@ -1,3 +1,4 @@
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const webpack = require('webpack');
@ -68,6 +69,14 @@ module.exports = {
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
new CopyWebpackPlugin({
patterns: [
{
from: 'public/img',
to: 'img',
},
],
}),
],
module: {
rules: [