Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/webpack/less-loader
/ functions
Functions
41 in github.com/webpack/less-loader
⨍
Functions
41
◇
Types & classes
18
↓ 56 callers
Function
getCodeFromBundle
* @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 callers
Function
getCodeFromLess
* @param {string} testId test ID * @param {Options} options options * @param {Context} context context * @returns {{ css: string, map: RawSourceMap
test/helpers/getCodeFromLess.js:186
↓ 2 callers
Method
resolveFilename
* @param {string} filename filename * @param {string} currentDirectory current directory * @returns {Promise<string>} resolved filename
src/utils.js:175
↓ 1 callers
Function
buildCjsBundle
* 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 callers
Function
createTestCase
* @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 callers
Function
createWebpackLessPlugin
* 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 callers
Function
errorFactory
* @param {LessError} error error * @returns {Error} built error
src/utils.js:453
↓ 1 callers
Function
getFileExcerptIfPossible
* @param {LessError} error error * @returns {string[]} file excerpt
src/utils.js:432
↓ 1 callers
Function
getLessImplementation
* @param {LoaderContext} loaderContext loader context * @param {string | Less | undefined} implementation implementation * @returns {Promise<Less>}
src/utils.js:415
↓ 1 callers
Function
getLessOptions
* Get the `less` options from the loader context and normalizes its values * @param {LoaderContext} loaderContext loader context * @param {LoaderOpt
src/utils.js:300
↓ 1 callers
Function
isUnsupportedUrl
* @param {string} url url * @returns {boolean} true when url is unsupported, otherwise false
src/utils.js:362
↓ 1 callers
Method
loadFile
* @param {string} filename filename * @param {string} currentDirectory current directory * @param {LoadFileOptions} options options * @
src/utils.js:227
↓ 1 callers
Function
normalizeImportSpecifier
* @param {string} specifier specifier * @returns {string} resolved specifier
src/utils.js:398
↓ 1 callers
Function
normalizeSourceMap
* @param {SourceMap} map map * @returns {SourceMap} normalized source map
src/utils.js:377
↓ 1 callers
Function
removeCWD
* @param {string} str str * @returns {string} str without cwd
test/helpers/normalizeErrors.js:5
↓ 1 callers
Method
resolveRequests
* @param {string} context context * @param {string[]} possibleRequests possible requests * @returns {Promise<string>} resolved requests
src/utils.js:198
↓ 1 callers
Function
stringifyValue
* @param {EXPECTED_ANY} value value * @returns {string} stringified value
test/validate-options.test.js:50
Function
additionalData
(content, loaderContext)
test/additionalData-option.test.js:31
Method
constructor
(lessInstance, pluginManager)
test/loader.test.js:798
Function
debug
@param {string} message message
src/index.js:98
Function
error
@param {string} message message
src/index.js:78
Function
info
@param {string} message message
src/index.js:94
Function
install
()
test/loader.test.js:95
Function
install
* @param {Less} less less * @param {PluginManager} pluginManager plugin manager
src/utils.js:286
Method
install
(lessInstance, pluginManager)
test/loader.test.js:808
Method
install
(lessInstance, pluginManager)
test/helpers/getCodeFromLess.js:175
Method
install
(less, pluginManager)
test/fixtures/folder/customFileLoaderPlugin.cjs:33
Method
install
(less, pluginManager)
test/fixtures/folder/customImportPlugin.cjs:8
Function
lessLoader
* Webpack loader that compiles Less to CSS. * @this {LoaderContext} * @param {string} content content * @returns {Promise<void>} loader result
src/index.js:24
Method
loadFile
(filename, ...args)
test/helpers/getCodeFromLess.js:166
Method
loadFile
(filename, ...args)
test/fixtures/folder/customFileLoaderPlugin.cjs:17
Method
loadFileSync
* @param {string} filename filename * @param {string} currentDirectory current directory * @param {LoadFileOptions} options options * @
src/utils.js:121
Method
process
()
test/fixtures/folder/customImportPlugin.cjs:2
Function
readAssets
(compiler, stats)
test/helpers/readAssets.js:8
Method
supports
(filename)
test/helpers/getCodeFromLess.js:150
Method
supports
(filename)
test/fixtures/folder/customFileLoaderPlugin.cjs:5
Method
supports
* @param {string} filename filename * @returns {boolean} true when filename is supported, otherwise false
src/utils.js:87
Method
supportsSync
()
test/helpers/getCodeFromLess.js:162
Method
supportsSync
* @returns {boolean} true when support sync, otherwise false
src/utils.js:110
Function
testLoader
* @param {string} content content * @param {RawSourceMap} sourceMap source map * @returns {string} code for tests
test/helpers/testLoader.cjs:8
Function
warn
@param {string} message message
src/index.js:86