Skip to content

Commit 3764776

Browse files
refactor: before release (#13)
1 parent 0a90166 commit 3764776

File tree

9 files changed

+481
-856
lines changed

9 files changed

+481
-856
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module. Thankfully, Github provides a means to do this. Add a dependency to the
140140
```json
141141
{
142142
"devDependencies": {
143-
"cssnano-webpack-plugin": "webpack-contrib/cssnano-webpack-plugin#{id}/head"
143+
"css-minimizer-webpack-plugin": "webpack-contrib/css-minimizer-webpack-plugin#{id}/head"
144144
}
145145
}
146146
```
@@ -149,7 +149,7 @@ Where `{id}` is the # ID of your Pull Request.
149149

150150
## Contributor License Agreement
151151

152-
When submitting your contribution, a CLA (Contributor License Agreement) bot will come by to verify that you signed the [CLA](https://cla.js.foundation/webpack-contrib/cssnano-webpack-plugin).
152+
When submitting your contribution, a CLA (Contributor License Agreement) bot will come by to verify that you signed the [CLA](https://cla.js.foundation/webpack-contrib/css-minimizer-webpack-plugin).
153153
If it is your first time, it will link you to the right place to sign it.
154154
However, if you have committed your contributions using an email that is not the same as your email used on GitHub, the CLA bot can't accept your contribution.
155155

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ about: Something went awry and you'd like to tell us about it.
1818
- Node Version:
1919
- NPM Version:
2020
- webpack Version:
21-
- cssnano-webpack-plugin Version:
21+
- css-minimizer-webpack-plugin Version:
2222

2323
### Expected Behavior
2424

.github/ISSUE_TEMPLATE/FEATURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ about: Suggest an idea for this project
1818
- Node Version:
1919
- NPM Version:
2020
- webpack Version:
21-
- cssnano-webpack-plugin Version:
21+
- css-minimizer-webpack-plugin Version:
2222

2323
### Feature Proposal
2424

.github/ISSUE_TEMPLATE/MODIFICATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ about: Would you like something work differently? Have an alternative approach?
1818
- Node Version:
1919
- NPM Version:
2020
- webpack Version:
21-
- cssnano-webpack-plugin Version:
21+
- css-minimizer-webpack-plugin Version:
2222

2323
### Expected Behavior / Situation
2424

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: cssnano-webpack-plugin
1+
name: css-minimizer-webpack-plugin
22

33
on:
44
push:

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616

1717
This plugin uses [cssnano](https://cssnano.co) to optimize and minify your CSS.
1818

19-
Fully integrated in Webpack ecosystem: based on compiler hooks, respecting default Webpack output sources and compatible with other plugins like _SourceMapDevToolPlugin_ or _webpack-subresource-integrity_.
20-
21-
Just like [optimize-css-assets-webpack-plugin](https://github.com/NMFR/optimize-css-assets-webpack-plugin) but more accurate with source maps and assets using query string.
22-
23-
Works with Webpack 4+.
19+
Just like [optimize-css-assets-webpack-plugin](https://github.com/NMFR/optimize-css-assets-webpack-plugin) but more accurate with source maps and assets using query string, allows to cache and works in parallel mode.
2420

2521
## Getting Started
2622

@@ -53,7 +49,9 @@ module.exports = {
5349
};
5450
```
5551

56-
This will enable CSS optimization only in production mode. If you want to run it also in development, put the plugin configuration in the `plugins` option array.
52+
This will enable CSS optimization only in production mode.
53+
If you want to run it also in development, put the plugin configuration in the `plugins` option array.
54+
5755
And run `webpack` via your preferred method.
5856

5957
## Options
@@ -270,10 +268,7 @@ Default configuration when enabled: `{ inline: false }`.
270268

271269
**Works only with `source-map`, `inline-source-map`, `hidden-source-map` and `nosources-source-map` values for the [`devtool`](https://webpack.js.org/configuration/devtool/) option.**
272270

273-
Why?
274-
275-
- `eval` wraps modules in `eval("string")` and the minimizer does not handle strings.
276-
- `cheap` has not column information and minimizer generate only a single line, which leave only a single mapping.
271+
Why? Because CSS support only these source map types.
277272

278273
The plugin respect the [`devtool`](https://webpack.js.org/configuration/devtool/) and using the `SourceMapDevToolPlugin` plugin.
279274
Using supported `devtool` values enable source map generation.

0 commit comments

Comments
 (0)