Initial boiler plate project
This commit is contained in:
4
node_modules/next/dist/build/webpack/config/blocks/images/index.d.ts
generated
vendored
Normal file
4
node_modules/next/dist/build/webpack/config/blocks/images/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/// <reference types="lodash" />
|
||||
import type { webpack } from 'next/dist/compiled/webpack/webpack';
|
||||
import type { ConfigurationContext } from '../../utils';
|
||||
export declare const images: import("lodash").CurriedFunction2<ConfigurationContext, webpack.Configuration, Promise<webpack.Configuration>>;
|
||||
42
node_modules/next/dist/build/webpack/config/blocks/images/index.js
generated
vendored
Normal file
42
node_modules/next/dist/build/webpack/config/blocks/images/index.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "images", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return images;
|
||||
}
|
||||
});
|
||||
const _lodashcurry = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/lodash.curry"));
|
||||
const _webpackconfig = require("../../../../webpack-config");
|
||||
const _helpers = require("../../helpers");
|
||||
const _utils = require("../../utils");
|
||||
const _messages = require("./messages");
|
||||
function _interop_require_default(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
const images = (0, _lodashcurry.default)(async function images(_ctx, config) {
|
||||
const fns = [
|
||||
(0, _helpers.loader)({
|
||||
oneOf: [
|
||||
{
|
||||
test: _webpackconfig.nextImageLoaderRegex,
|
||||
use: {
|
||||
loader: "error-loader",
|
||||
options: {
|
||||
reason: (0, _messages.getCustomDocumentImageError)()
|
||||
}
|
||||
},
|
||||
issuer: /pages[\\/]_document\./
|
||||
}
|
||||
]
|
||||
})
|
||||
];
|
||||
const fn = (0, _utils.pipe)(...fns);
|
||||
return fn(config);
|
||||
});
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/next/dist/build/webpack/config/blocks/images/index.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/webpack/config/blocks/images/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/build/webpack/config/blocks/images/index.ts"],"names":["images","curry","_ctx","config","fns","loader","oneOf","test","nextImageLoaderRegex","use","options","reason","getCustomDocumentImageError","issuer","fn","pipe"],"mappings":";;;;+BAQaA;;;eAAAA;;;oEARK;+BAEmB;yBACd;uBACF;0BAEuB;;;;;;AAErC,MAAMA,SAASC,IAAAA,oBAAK,EAAC,eAAeD,OACzCE,IAA0B,EAC1BC,MAA6B;IAE7B,MAAMC,MAAyB;QAC7BC,IAAAA,eAAM,EAAC;YACLC,OAAO;gBACL;oBACEC,MAAMC,mCAAoB;oBAC1BC,KAAK;wBACHJ,QAAQ;wBACRK,SAAS;4BACPC,QAAQC,IAAAA,qCAA2B;wBACrC;oBACF;oBACAC,QAAQ;gBACV;aACD;QACH;KACD;IAED,MAAMC,KAAKC,IAAAA,WAAI,KAAIX;IACnB,OAAOU,GAAGX;AACZ"}
|
||||
1
node_modules/next/dist/build/webpack/config/blocks/images/messages.d.ts
generated
vendored
Normal file
1
node_modules/next/dist/build/webpack/config/blocks/images/messages.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare function getCustomDocumentImageError(): string;
|
||||
16
node_modules/next/dist/build/webpack/config/blocks/images/messages.js
generated
vendored
Normal file
16
node_modules/next/dist/build/webpack/config/blocks/images/messages.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "getCustomDocumentImageError", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return getCustomDocumentImageError;
|
||||
}
|
||||
});
|
||||
const _picocolors = require("../../../../../lib/picocolors");
|
||||
function getCustomDocumentImageError() {
|
||||
return `Images ${(0, _picocolors.bold)("cannot")} be imported within ${(0, _picocolors.cyan)("pages/_document.js")}. Please move image imports that need to be displayed on every page into ${(0, _picocolors.cyan)("pages/_app.js")}.\nRead more: https://nextjs.org/docs/messages/custom-document-image-import`;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=messages.js.map
|
||||
1
node_modules/next/dist/build/webpack/config/blocks/images/messages.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/webpack/config/blocks/images/messages.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/build/webpack/config/blocks/images/messages.ts"],"names":["getCustomDocumentImageError","bold","cyan"],"mappings":";;;;+BAEgBA;;;eAAAA;;;4BAFW;AAEpB,SAASA;IACd,OAAO,CAAC,OAAO,EAAEC,IAAAA,gBAAI,EAAC,UAAU,oBAAoB,EAAEC,IAAAA,gBAAI,EACxD,sBACA,yEAAyE,EAAEA,IAAAA,gBAAI,EAC/E,iBACA,2EAA2E,CAAC;AAChF"}
|
||||
Reference in New Issue
Block a user