less-loader 2.1.0 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false">
4
+ <file url="PROJECT" charset="UTF-8" />
5
+ </component>
4
6
  </project>
@@ -3,6 +3,5 @@
3
3
  <component name="JavaScriptLibraryMappings">
4
4
  <file url="file://$PROJECT_DIR$" libraries="{less-loader node_modules}" />
5
5
  <file url="PROJECT" libraries="{expect.js-DefinitelyTyped, mocha-DefinitelyTyped, sinon-chai-DefinitelyTyped}" />
6
- <includedPredefinedLibrary name="Node.js Globals" />
7
6
  </component>
8
7
  </project>
@@ -0,0 +1,4 @@
1
+ <changelist name="1" date="1425655295676" recycled="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/1.patch" />
3
+ <option name="DESCRIPTION" value="1" />
4
+ </changelist>
@@ -0,0 +1,4 @@
1
+ <changelist name="2" date="1425655306663" recycled="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/2.patch" />
3
+ <option name="DESCRIPTION" value="2" />
4
+ </changelist>
@@ -0,0 +1,35 @@
1
+ Index: README.md
2
+ IDEA additional info:
3
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
4
+ <+>UTF-8
5
+ ===================================================================
6
+ --- README.md (revision 41c6caf2d20afea537a7202858bdff5a17728ef1)
7
+ +++ README.md (revision )
8
+ @@ -55,9 +55,8 @@
9
+
10
+ ### LESS plugins
11
+
12
+ -In order to use [plugins](http://lesscss.org/usage/#plugins), simply define
13
+ -the `lessLoader.lessPlugins` option. You can also change the options key
14
+ -with a query parameter: `"less?config=lessLoaderCustom"`.
15
+ +In order to use [plugins](http://lesscss.org/usage/#plugins), simply set
16
+ +the `lessLoader.lessPlugins`-option on your webpack options. You can also change the options' key with a query parameter: `"less?config=lessLoaderCustom"`.
17
+
18
+ ``` javascript
19
+ var LessPluginCleanCSS = require('less-plugin-clean-css');
20
+ Index: .editorconfig
21
+ IDEA additional info:
22
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
23
+ <+>UTF-8
24
+ ===================================================================
25
+ --- .editorconfig (revision 41c6caf2d20afea537a7202858bdff5a17728ef1)
26
+ +++ .editorconfig (revision )
27
+ @@ -9,7 +9,7 @@
28
+ end_of_line = lf
29
+ insert_final_newline = true
30
+ indent_style = tab
31
+ -indent_size = 2
32
+ +indent_size = 4
33
+
34
+ # Matches the exact files either package.json or .travis.yml
35
+ [{package.json,.travis.yml}]
@@ -0,0 +1,4 @@
1
+ <changelist name="Uncommitted_changes_before_Update_at_25_11_15__19_39__Default_" date="1448476785812" recycled="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_25_11_15__19_39__Default_/shelved.patch" />
3
+ <option name="DESCRIPTION" value="Uncommitted changes before Update at 25.11.15, 19:39 [Default]" />
4
+ </changelist>
@@ -0,0 +1,19 @@
1
+ Index: README.md
2
+ IDEA additional info:
3
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
4
+ <+>UTF-8
5
+ ===================================================================
6
+ --- README.md (revision 9267cb1e8ba19079a651e7c15da4cc92d2808d72)
7
+ +++ README.md (revision )
8
+ @@ -55,9 +55,8 @@
9
+
10
+ ### LESS plugins
11
+
12
+ -In order to use [plugins](http://lesscss.org/usage/#plugins), simply define
13
+ -the `lessLoader.lessPlugins` option. You can also change the options key
14
+ -with a query parameter: `"less?config=lessLoaderCustom"`.
15
+ +In order to use [plugins](http://lesscss.org/usage/#plugins), simply set
16
+ +the `lessLoader.lessPlugins`-option on your webpack options. You can also change the options' key with a query parameter: `"less?config=lessLoaderCustom"`.
17
+
18
+ ``` javascript
19
+ var LessPluginCleanCSS = require('less-plugin-clean-css');
@@ -0,0 +1,4 @@
1
+ <changelist name="Uncommitted_changes_before_update_operation_at_05_10_15_22_25__Default_" date="1444076745546" recycled="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_update_operation_at_05_10_15_22_25_[Default].patch" />
3
+ <option name="DESCRIPTION" value="Uncommitted changes before update operation at 05.10.15 22:25 [Default]" />
4
+ </changelist>
@@ -0,0 +1,4 @@
1
+ <changelist name="head" date="1425655279909" recycled="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/head.patch" />
3
+ <option name="DESCRIPTION" value="head" />
4
+ </changelist>
@@ -0,0 +1,27 @@
1
+ Index: test/index.test.js
2
+ IDEA additional info:
3
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
4
+ <+>UTF-8
5
+ ===================================================================
6
+ --- test/index.test.js (revision 7ab6a2ef7d17e1ebaa9d15e8cf79fc0120c21523)
7
+ +++ test/index.test.js (revision )
8
+ @@ -29,6 +29,7 @@
9
+ }
10
+ });
11
+ test("should not try to resolve import urls", "imports-url");
12
+ + test("should not try to resolve import urls", "imports-url");
13
+ test("should compile data-uri function", "data-uri");
14
+ test("should transform urls", "url-path");
15
+ test("should transform urls to files above the current directory", "folder/url-path");
16
+ Index: test/less/imports-fallback.less
17
+ IDEA additional info:
18
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
19
+ <+>UTF-8
20
+ ===================================================================
21
+ --- test/less/imports-fallback.less (revision )
22
+ +++ test/less/imports-fallback.less (revision )
23
+ @@ -0,0 +1,4 @@
24
+ +// This import does not use a tilde to reference the bower_components folder – just like your JS modules.
25
+ +// In this case, the less-loader will first try to resolve ./module.less and then module.less. This behavior is pretty
26
+ +// similar to how LESS is handling the --inlucde-path option
27
+ +@import "module.less";
@@ -0,0 +1,4 @@
1
+ <changelist name="imports_fallback_https___github_com_webpack_less_loader_issues_74" date="1458934656167" recycled="false">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/imports_fallback_https___github_com_webpack_less_loader_issues_74/shelved.patch" />
3
+ <option name="DESCRIPTION" value="imports-fallback https://github.com/webpack/less-loader/issues/74" />
4
+ </changelist>
@@ -0,0 +1,36 @@
1
+ Index: README.md
2
+ IDEA additional info:
3
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
4
+ <+>UTF-8
5
+ ===================================================================
6
+ --- README.md (date 1425659589000)
7
+ +++ README.md (revision )
8
+ @@ -53,25 +53,15 @@
9
+
10
+ See the [LESS documentation](http://lesscss.org/usage/#command-line-usage-options) for all available options. LESS translates dash-case to camelCase.
11
+
12
+ -## Note on imports
13
+ +## Imports
14
+
15
+ -webpack provides an [advanced mechanism to resolve files](http://webpack.github.io/docs/resolving.html). The less-loader stubs less' `fileLoader` and passes all queries to the webpack resolving engine. Thus you can import your less-modules from `node_modules` or `bower_components`. Just prepend them with a `~` which tells webpack to look-up the [`modulesDirectories`](http://webpack.github.io/docs/configuration.html#resolve-modulesdirectories)
16
+ +webpack provides an [advanced mechanism to resolve files](http://webpack.github.io/docs/resolving.html). The less-loader stubs less' `fileLoader` and passes all queries to the webpack resolving engine. Thus you can import your less-modules from `node_modules`. Just prepend them with a `~` which tells webpack to look-up the [`modulesDirectories`](http://webpack.github.io/docs/configuration.html#resolve-modulesdirectories)
17
+
18
+ ```css
19
+ @import "~bootstrap/less/bootstrap";
20
+ ```
21
+
22
+ -It's important to only prepend it with `~`, because `~/` resolves to the home-directory. webpack needs to distinguish `bootstrap` from `~bootstrap` because css- and less-files have no special syntax for importing relative files:
23
+ -
24
+ -```css
25
+ -@import "file";
26
+ -```
27
+ -
28
+ -is the same as
29
+ -
30
+ -```css
31
+ -@import "./file";
32
+ -```
33
+ +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";`
34
+
35
+ ## Source maps
36
+
@@ -0,0 +1,4 @@
1
+ <changelist name="tmp" date="1427063743490" recycled="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/tmp.patch" />
3
+ <option name="DESCRIPTION" value="tmp" />
4
+ </changelist>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectTasksOptions" suppressed-tasks="Less" />
4
+ </project>