MCPcopy Create free account

hub / github.com/webpack/less-loader / functions

Functions41 in github.com/webpack/less-loader

↓ 56 callersFunctiongetCodeFromBundle
* @param {Stats} stats stats * @param {Compiler} compiler compiler * @param {name} asset asset name * @returns {Record<string, string>} code from b
test/helpers/getCodeFromBundle.js:11
↓ 49 callersFunctiongetCodeFromLess
* @param {string} testId test ID * @param {Options} options options * @param {Context} context context * @returns {{ css: string, map: RawSourceMap
test/helpers/getCodeFromLess.js:186
↓ 2 callersMethodresolveFilename
* @param {string} filename filename * @param {string} currentDirectory current directory * @returns {Promise<string>} resolved filename
src/utils.js:175
↓ 1 callersFunctionbuildCjsBundle
* Transpile every `.js` file under `src/` to CommonJS in `outDir`, copy * non-JS assets, then drop the `dist/cjs/package.json` type marker and * the
test/cjs.test.js:31
↓ 1 callersFunctioncreateTestCase
* @param {string} key key * @param {EXPECTED_ANY} value value * @param {string} type type * @returns {Promise<void>} created test case
test/validate-options.test.js:67
↓ 1 callersFunctioncreateWebpackLessPlugin
* Creates a Less plugin that uses webpack's resolving engine that is provided by the loaderContext. * @param {LoaderContext} loaderContext loader con
src/utils.js:65
↓ 1 callersFunctionerrorFactory
* @param {LessError} error error * @returns {Error} built error
src/utils.js:453
↓ 1 callersFunctiongetFileExcerptIfPossible
* @param {LessError} error error * @returns {string[]} file excerpt
src/utils.js:432
↓ 1 callersFunctiongetLessImplementation
* @param {LoaderContext} loaderContext loader context * @param {string | Less | undefined} implementation implementation * @returns {Promise<Less>}
src/utils.js:415
↓ 1 callersFunctiongetLessOptions
* Get the `less` options from the loader context and normalizes its values * @param {LoaderContext} loaderContext loader context * @param {LoaderOpt
src/utils.js:300
↓ 1 callersFunctionisUnsupportedUrl
* @param {string} url url * @returns {boolean} true when url is unsupported, otherwise false
src/utils.js:362
↓ 1 callersMethodloadFile
* @param {string} filename filename * @param {string} currentDirectory current directory * @param {LoadFileOptions} options options * @
src/utils.js:227
↓ 1 callersFunctionnormalizeImportSpecifier
* @param {string} specifier specifier * @returns {string} resolved specifier
src/utils.js:398
↓ 1 callersFunctionnormalizeSourceMap
* @param {SourceMap} map map * @returns {SourceMap} normalized source map
src/utils.js:377
↓ 1 callersFunctionremoveCWD
* @param {string} str str * @returns {string} str without cwd
test/helpers/normalizeErrors.js:5
↓ 1 callersMethodresolveRequests
* @param {string} context context * @param {string[]} possibleRequests possible requests * @returns {Promise<string>} resolved requests
src/utils.js:198
↓ 1 callersFunctionstringifyValue
* @param {EXPECTED_ANY} value value * @returns {string} stringified value
test/validate-options.test.js:50
FunctionadditionalData
(content, loaderContext)
test/additionalData-option.test.js:31
Methodconstructor
(lessInstance, pluginManager)
test/loader.test.js:798
Functiondebug
@param {string} message message
src/index.js:98
Functionerror
@param {string} message message
src/index.js:78
Functioninfo
@param {string} message message
src/index.js:94
Functioninstall
()
test/loader.test.js:95
Functioninstall
* @param {Less} less less * @param {PluginManager} pluginManager plugin manager
src/utils.js:286
Methodinstall
(lessInstance, pluginManager)
test/loader.test.js:808
Methodinstall
(lessInstance, pluginManager)
test/helpers/getCodeFromLess.js:175
Methodinstall
(less, pluginManager)
test/fixtures/folder/customFileLoaderPlugin.cjs:33
Methodinstall
(less, pluginManager)
test/fixtures/folder/customImportPlugin.cjs:8
FunctionlessLoader
* Webpack loader that compiles Less to CSS. * @this {LoaderContext} * @param {string} content content * @returns {Promise<void>} loader result
src/index.js:24
MethodloadFile
(filename, ...args)
test/helpers/getCodeFromLess.js:166
MethodloadFile
(filename, ...args)
test/fixtures/folder/customFileLoaderPlugin.cjs:17
MethodloadFileSync
* @param {string} filename filename * @param {string} currentDirectory current directory * @param {LoadFileOptions} options options * @
src/utils.js:121
Methodprocess
()
test/fixtures/folder/customImportPlugin.cjs:2
FunctionreadAssets
(compiler, stats)
test/helpers/readAssets.js:8
Methodsupports
(filename)
test/helpers/getCodeFromLess.js:150
Methodsupports
(filename)
test/fixtures/folder/customFileLoaderPlugin.cjs:5
Methodsupports
* @param {string} filename filename * @returns {boolean} true when filename is supported, otherwise false
src/utils.js:87
MethodsupportsSync
()
test/helpers/getCodeFromLess.js:162
MethodsupportsSync
* @returns {boolean} true when support sync, otherwise false
src/utils.js:110
FunctiontestLoader
* @param {string} content content * @param {RawSourceMap} sourceMap source map * @returns {string} code for tests
test/helpers/testLoader.cjs:8
Functionwarn
@param {string} message message
src/index.js:86