Skip to content

Commit b32d7e7

Browse files
docs: removed deprecated info (#390)
1 parent 0b2bb48 commit b32d7e7

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -359,29 +359,6 @@ webpack provides an [advanced mechanism to resolve files](https://webpack.js.org
359359

360360
It's important to only prepend it with `~`, because `~/` resolves to the home-directory. webpack needs to distinguish between `bootstrap` and `~bootstrap`, because CSS and Less files have no special syntax for importing relative files. Writing `@import "file"` is the same as `@import "./file";`
361361

362-
##### Non-Less imports
363-
364-
Using webpack's resolver, you can import any file type. You just need a loader that exports valid Less code. Often, you will also want to set the `issuer` condition to ensure that this rule is only applied on imports originating from Less files:
365-
366-
```js
367-
// webpack.config.js
368-
module.exports = {
369-
module: {
370-
rules: [
371-
{
372-
test: /\.js$/,
373-
issuer: /\.less$/,
374-
use: [
375-
{
376-
loader: 'js-to-less-loader',
377-
},
378-
],
379-
},
380-
],
381-
},
382-
};
383-
```
384-
385362
#### Less resolver
386363

387364
If you specify the `paths` option, modules will be searched in the given `paths`. This is Less' default behavior. `paths` should be an array with absolute paths:

0 commit comments

Comments
 (0)