Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to https URLs #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ A Webpack plugin to optimize \ minimize CSS assets.

## What does the plugin do?

It will search for CSS assets during the Webpack build and will optimize \ minimize the CSS (by default it uses [cssnano](http://github.com/ben-eb/cssnano) but a custom CSS processor can be specified).
It will search for CSS assets during the Webpack build and will optimize \ minimize the CSS (by default it uses [cssnano](https://github.com/cssnano/cssnano) but a custom CSS processor can be specified).

### Solves [extract-text-webpack-plugin](http://github.com/webpack/extract-text-webpack-plugin) CSS duplication problem:
### Solves [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) CSS duplication problem:

Since [extract-text-webpack-plugin](http://github.com/webpack/extract-text-webpack-plugin) only bundles (merges) text chunks, if it's used to bundle CSS, the bundle might have duplicate entries (chunks can be duplicate free but when merged, duplicate CSS can be created).
Since [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) only bundles (merges) text chunks, if it's used to bundle CSS, the bundle might have duplicate entries (chunks can be duplicate free but when merged, duplicate CSS can be created).

## Installation:

Expand All @@ -25,7 +25,7 @@ $ npm install --save-dev optimize-css-assets-webpack-plugin

The plugin can receive the following options (all of them are optional):
* `assetNameRegExp`: A regular expression that indicates the names of the assets that should be optimized \ minimized. The regular expression provided is run against the filenames of the files exported by the `ExtractTextPlugin` instances in your configuration, not the filenames of your source CSS files. Defaults to `/\.css$/g`
* `cssProcessor`: The CSS processor used to optimize \ minimize the CSS, defaults to [`cssnano`](http://github.com/ben-eb/cssnano). This should be a function that follows `cssnano.process` interface (receives a CSS and options parameters and returns a Promise).
* `cssProcessor`: The CSS processor used to optimize \ minimize the CSS, defaults to [`cssnano`](https://github.com/cssnano/cssnano). This should be a function that follows `cssnano.process` interface (receives a CSS and options parameters and returns a Promise).
* `cssProcessorOptions`: The options passed to the `cssProcessor`, defaults to `{}`
* `cssProcessorPluginOptions`: The plugin options passed to the `cssProcessor`, defaults to `{}`
* `canPrint`: A boolean indicating if the plugin can print messages to the console, defaults to `true`
Expand Down Expand Up @@ -59,5 +59,5 @@ module.exports = {

## License

MIT (http://www.opensource.org/licenses/mit-license.php)
MIT (https://opensource.org/licenses/mit-license.php)

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"remove",
"webpack"
],
"homepage": "http://github.com/NMFR/optimize-css-assets-webpack-plugin",
"homepage": "https://github.com/NMFR/optimize-css-assets-webpack-plugin",
"license": "MIT",
"author": "Nuno Rodrigues",
"main": "src/index.js",
"repository": {
"type": "git",
"url": "http://github.com/NMFR/optimize-css-assets-webpack-plugin.git"
"url": "https://github.com/NMFR/optimize-css-assets-webpack-plugin.git"
},
"scripts": {
"test": "jest",
Expand Down