Skip to content

Commit eb7ee4b

Browse files
committed
Updates to the .editorconfig
1 parent 9b2511f commit eb7ee4b

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.editorconfig

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,4 @@ root = true
22

33
[*]
44
indent_style = tab
5-
end_of_line = lf
6-
charset = utf-8
7-
trim_trailing_whitespace = true
8-
insert_final_newline = true
9-
10-
[{package.json,README.md}]
11-
indent_style = space
12-
indent_size = 2
13-
14-
[*.md]
15-
trim_trailing_whitespace = false
5+
indent_size = 4

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Webpack Omit JS for CSS Plugin
22

3-
This plugin will omit bundled JS files, for dependencies that are exclusively CSS, which become obsolete once extract-text-plugin extracts inlined CSS into its own .css file
3+
This plugin will omit bundled JS files for dependencies that are exclusively CSS, which become obsolete once extract-text-plugin extracts inlined CSS into its own .css file
44

55
## Rationale
66

7-
In certain cases, you may want to organize some of your CSS dependencies into single files or entry arrays within Webpack. Even though Extract-text-plugin extracts CSS into its own .css file, Webpack will still generate a js file that will never be needed. This plugin will omit these types of files before Webpack begins its emitting step, so that you don't have to manually remove them. This plugin is especially useful for Webpack bundles that use a hash in the the filename, as these change on every compilation.
7+
In certain cases, you may want to organize some of your CSS dependencies into single files or entry arrays within Webpack. Even though Extract-text-plugin extracts CSS into its own .css file, Webpack will still generate a js file that will never be needed. This plugin will omit these types of files before Webpack begins its emitting step, so that you don't have to manually remove them. This plugin is especially useful for Webpack bundles that use a hash in the filename, as these change on every compilation.
88

99
Example as a file
1010
```js
@@ -63,5 +63,5 @@ new OmitJSforCSSPlugin(options: object)
6363
|**`cacheOnWatch`**|`{Boolean}`|false|Whether it should cache the JS filenames that should be omitted, on watch|
6464
|**`verbose`**|`{Boolean}`|false|Whether it should display which files will be omitted to the console|
6565

66-
## Additional Notes
67-
:fire: :fire: While this plugin supports caching the omissible files on watch, it's not ideal to use this plugin during Development. It's highly recommended you only include this plugin when you're building for production. :fire: :fire:
66+
## :fire: Additional Notes :fire:
67+
While this plugin supports caching the omissible files on watch, it's not ideal to use this plugin during Development. It's highly recommended you only include this plugin when you're building for production.

0 commit comments

Comments
 (0)