Skip to content

Commit 0984ea3

Browse files
committed
поправил взаимодействие с file-loader
1 parent 8d11090 commit 0984ea3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpack/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const loader = function (this: webpack.loader.LoaderContext, source: stri
6161
const breakpointMedia = breakpointName === all ? null : getBreakpointMedia(breakpoints[order]);
6262

6363
// Получаем путь до картинки (outputImagePath = '/build/myImage/mobile.all-4b767a7b.png')
64-
const outputImagePath = source.replace(/^module.exports = (__webpack_public_path__ \+ )?"(.+)";$/, (_, _, imagePath) => imagePath);
64+
const outputImagePath = source.replace(/^module.exports = (__webpack_public_path__ \+ )?"(.+)";$/, (a, b, imagePath) => imagePath);
6565

6666
let webpSrcSet: SrcSet, originalExtensionSrcSet: SrcSet, data: OrderedBreakpointSource;
6767
// Отключает процессинг картинок, генерируется srcSet только для оригинального типа изображения

0 commit comments

Comments
 (0)