You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ You can also provide manually multiples paths where to look at.
10
10
11
11
- This plugin works great with [postcss-url](https://github.com/postcss/postcss-url) plugin,
12
12
which will allow you to adjust assets `url()` (or even inline them) after inlining imported files.
13
-
- In order to optimize output, this plugin will only import a file once on a given scope (root, media query...). Tests are made from the path & the content of imported files (using a hash table).
13
+
- In order to optimize output, **this plugin will only import a file once** on a given scope (root, media query...).
14
+
Tests are made from the path & the content of imported files (using a hash table).
15
+
If this behavior is not what you want, look at `skipDuplicates` option
14
16
15
17
## Installation
16
18
@@ -148,6 +150,16 @@ Default: `null`
148
150
149
151
You can overwrite the default path resolving way by setting this option, using the `resolve.sync(id, opts)` signature that [resolve.sync](https://github.com/substack/node-resolve#resolvesyncid-opts) has.
150
152
153
+
#### `skipDuplicates`
154
+
155
+
Type: `Boolean`
156
+
Default: `true`
157
+
158
+
By default, similar files (based on the same content) are being skipped.
159
+
It's to optimize output and skip similar files like `normalize.css` for example.
160
+
If this behavior is not what you want, just set this option to `false` to
0 commit comments