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

{
"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/packages/cssnano-utils)\n\n> Utility methods used by cssnano\n\n### [`postcss-calc`](https://github.com/postcss/postcss-calc) (external)\n\n> PostCSS plugin to reduce calc()\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-colormin`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-colormin)\n\n> Minify colors in your CSS files with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-convert-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-convert-values)\n\n> Convert values with PostCSS (e.g. ms -> s)\n\nThis plugin is loaded with the following configuration:\n\n```js\n{\n length: false;\n}\n```\n\n### [`postcss-discard-comments`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-comments)\n\n> Discard comments in your CSS files with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-discard-duplicates`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-duplicates)\n\n> Discard duplicate rules in your CSS files with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-discard-empty`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-empty)\n\n> Discard empty rules and values with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-discard-overridden`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-overridden)\n\n> PostCSS plugin to discard overridden @keyframes or @counter-style.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-merge-longhand`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-merge-longhand)\n\n> Merge longhand properties into shorthand with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-merge-rules`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-merge-rules)\n\n> Merge CSS rules with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-minify-font-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-font-values)\n\n> Minify font declarations with PostCSS\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-minify-gradients`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-gradients)\n\n> Minify gradient parameters with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-minify-params`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-params)\n\n> Minify at-rule params with PostCSS\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-minify-selectors`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-minify-selectors)\n\n> Minify selectors with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-charset`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-charset)\n\n> Add necessary or remove extra charset with PostCSS\n\nThis plugin is loaded with the following configuration:\n\n```js\n{\n add: false;\n}\n```\n\n### [`postcss-normalize-display-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-display-values)\n\n> Normalize multiple value display syntaxes into single values.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-positions`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-positions)\n\n> Normalize keyword values for position into length values.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-repeat-style`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-repeat-style)\n\n> Convert two value syntax for repeat-style into one value.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-string`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-string)\n\n> Normalize wrapping quotes for CSS string literals.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-timing-functions`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-timing-functions)\n\n> Normalize CSS animation/transition timing functions.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-unicode`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-unicode)\n\n> Normalize unicode-range descriptors, and can convert to wildcard ranges.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-url`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-url)\n\n> Normalize URLs with PostCSS\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-normalize-whitespace`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-whitespace)\n\n> Trim whitespace inside and around CSS rules & declarations.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-ordered-values`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-ordered-values)\n\n> Ensure values are ordered consistently in your CSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-reduce-initial`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-reduce-initial)\n\n> Reduce initial definitions to the actual initial value, where possible.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-reduce-transforms`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-reduce-transforms)\n\n> Reduce transform functions with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-svgo`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-svgo)\n\n> Optimise inline SVG with PostCSS.\n\nThis plugin is loaded with its default configuration.\n\n### [`postcss-unique-selectors`](https://github.com/cssnano/cssnano/tree/master/packages/postcss-unique-selectors)\n\n> Ensure CSS selectors are unique.\n\nThis plugin is loaded with its default configuration.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n"
}