vue hello world项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
12 KiB

3 years ago
{
"name": "cssnano-preset-default",
"version": "5.2.0",
"main": "src/index.js",
"types": "types/index.d.ts",
"description": "Safe defaults for cssnano which require minimal configuration.",
"files": [
"LICENSE-MIT",
"src",
"types"
],
"license": "MIT",
"dependencies": {
"css-declaration-sorter": "^6.0.3",
"cssnano-utils": "^3.1.0",
"postcss-calc": "^8.2.3",
"postcss-colormin": "^5.3.0",
"postcss-convert-values": "^5.1.0",
"postcss-discard-comments": "^5.1.0",
"postcss-discard-duplicates": "^5.1.0",
"postcss-discard-empty": "^5.1.0",
"postcss-discard-overridden": "^5.1.0",
"postcss-merge-longhand": "^5.1.0",
"postcss-merge-rules": "^5.1.0",
"postcss-minify-font-values": "^5.1.0",
"postcss-minify-gradients": "^5.1.0",
"postcss-minify-params": "^5.1.0",
"postcss-minify-selectors": "^5.2.0",
"postcss-normalize-charset": "^5.1.0",
"postcss-normalize-display-values": "^5.1.0",
"postcss-normalize-positions": "^5.1.0",
"postcss-normalize-repeat-style": "^5.1.0",
"postcss-normalize-string": "^5.1.0",
"postcss-normalize-timing-functions": "^5.1.0",
"postcss-normalize-unicode": "^5.1.0",
"postcss-normalize-url": "^5.1.0",
"postcss-normalize-whitespace": "^5.1.0",
"postcss-ordered-values": "^5.1.0",
"postcss-reduce-initial": "^5.1.0",
"postcss-reduce-transforms": "^5.1.0",
"postcss-svgo": "^5.1.0",
"postcss-unique-selectors": "^5.1.0"
},
"author": {
"name": "Ben Briggs",
"email": "beneb.info@gmail.com",
"url": "http://beneb.info"
},
"repository": "cssnano/cssnano",
"homepage": "https://github.com/cssnano/cssnano",
"bugs": {
"url": "https://github.com/cssnano/cssnano/issues"
},
"engines": {
"node": "^10 || ^12 || >=14.0"
},
"devDependencies": {
"@types/css-declaration-sorter": "^6.0.1",
"postcss": "^8.2.15"
},
"peerDependencies": {
"postcss": "^8.2.15"
},
"readme": "# cssnano-preset-default\n\n> Safe defaults for cssnano which require minimal configuration.\n\n## Table of Contents\n\n- [Overview](#overview)\n\n- [Usage](#usage)\n\n - [Install](#install)\n - [Configuration](#configuration)\n\n- [Plugins](#plugins)\n\n - [css-declaration-sorter (external)](#css-declaration-sorter-external)\n - [cssnano-utils](#cssnano-utils)\n - [postcss-calc (external)](#postcss-calc-external)\n - [postcss-colormin](#postcss-colormin)\n - [postcss-convert-values](#postcss-convert-values)\n - [postcss-discard-comments](#postcss-discard-comments)\n - [postcss-discard-duplicates](#postcss-discard-duplicates)\n - [postcss-discard-empty](#postcss-discard-empty)\n - [postcss-discard-overridden](#postcss-discard-overridden)\n - [postcss-merge-longhand](#postcss-merge-longhand)\n - [postcss-merge-rules](#postcss-merge-rules)\n - [postcss-minify-font-values](#postcss-minify-font-values)\n - [postcss-minify-gradients](#postcss-minify-gradients)\n - [postcss-minify-params](#postcss-minify-params)\n - [postcss-minify-selectors](#postcss-minify-selectors)\n - [postcss-normalize-charset](#postcss-normalize-charset)\n - [postcss-normalize-display-values](#postcss-normalize-display-values)\n - [postcss-normalize-positions](#postcss-normalize-positions)\n - [postcss-normalize-repeat-style](#postcss-normalize-repeat-style)\n - [postcss-normalize-string](#postcss-normalize-string)\n - [postcss-normalize-timing-functions](#postcss-normalize-timing-functions)\n - [postcss-normalize-unicode](#postcss-normalize-unicode)\n - [postcss-normalize-url](#postcss-normalize-url)\n - [postcss-normalize-whitespace](#postcss-normalize-whitespace)\n - [postcss-ordered-values](#postcss-ordered-values)\n - [postcss-reduce-initial](#postcss-reduce-initial)\n - [postcss-reduce-transforms](#postcss-reduce-transforms)\n - [postcss-svgo](#postcss-svgo)\n - [postcss-unique-selectors](#postcss-unique-selectors)\n\n- [Contributors](#contributors)\n\n- [License](#license)\n\n## Overview\n\nThis default preset for cssnano only includes transforms that make no\nassumptions about your CSS other than what is passed in. In previous\niterations of cssnano, assumptions were made about your CSS which caused\noutput to look different in certain use cases, but not others. These\ntransforms have been moved from the defaults to other presets, to make\nthis preset require only minimal configuration.\n\n## Usage\n\n### Install\n\nNote that this preset comes bundled with cssnano _by default_, so you don't need to install it separately.\n\n### Configuration\n\nIf you would like to use the default configuration, then you don't need to add anything to your `package.json`.\n\nBut should you wish to customise this, you can pass an array with the second parameter as the options object to use. For example, to remove all comments:\n\n```diff\n {\n \"name\": \"awesome-application\",\n+ \"cssnano\": {\n+ \"preset\": [\n+ \"default\",\n+ {\"discardComments\": {\"removeAll\": true}}\n+ ]\n+ }\n }\n```\n\nDepending on your usage, the JSON configuration might not work for you, such as in cases where you would like to use options with customisable function parameters. For this use case, we recommend a `cssnano.config.js` at the same location as your `package.json`. You can then load a preset and export it with your custom parameters:\n\n```js\nconst defaultPreset = require('cssnano-preset-default');\n\nmodule.exports = defaultPreset({\n discardComments: {\n remove: (comment) => comment[0] === '@',\n },\n});\n```\n\nNote that you may wish to publish your own preset to npm for reusability, should it differ a lot from this one. This is highly encouraged!\n\n## Plugins\n\n### [`css-declaration-sorter`](https://github.com/Siilwyn/css-declaration-sorter) (external)\n\n> Sorts CSS declarations fast and automatically in a certain order.\n\nThis plugin is loaded with the following configuration:\n\n```js\n{\n\tkeepOverrides: true\n}\n```\n\n### [`cssnano-utils`](https://github.com/cssnano/cssnano/tree/master/packag
}