uapte
This commit is contained in:
13
node_modules/postcss-normalize-charset/CHANGELOG.md
generated
vendored
13
node_modules/postcss-normalize-charset/CHANGELOG.md
generated
vendored
@@ -1,13 +0,0 @@
|
||||
# 1.1.1
|
||||
|
||||
* Performance tweaks; test that `node.parent` is equal to the AST rather than
|
||||
checking its type is `root`, and use the AST directly to prepend the
|
||||
`@charset` to, rather than using the superfluous `root()` method.
|
||||
|
||||
# 1.1.0
|
||||
|
||||
* Added `add` option (thanks to @ben-eb)
|
||||
|
||||
# 1.0.0
|
||||
|
||||
* Initial release.
|
||||
20
node_modules/postcss-normalize-charset/LICENSE
generated
vendored
20
node_modules/postcss-normalize-charset/LICENSE
generated
vendored
@@ -1,20 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2015 Bogdan Chadkin <trysound@yandex.ru>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
44
node_modules/postcss-normalize-charset/README.md
generated
vendored
44
node_modules/postcss-normalize-charset/README.md
generated
vendored
@@ -1,44 +0,0 @@
|
||||
# postcss-normalize-charset [![Build Status][ci-img]][ci]
|
||||
|
||||
Add necessary or remove extra charset with PostCSS
|
||||
|
||||
```css
|
||||
a{
|
||||
content: "©";
|
||||
}
|
||||
```
|
||||
|
||||
```css
|
||||
@charset "utf-8";
|
||||
a{
|
||||
content: "©";
|
||||
}
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### normalizeCharset([options])
|
||||
|
||||
#### options
|
||||
|
||||
##### add
|
||||
|
||||
Type: `boolean`
|
||||
Default: `true`
|
||||
|
||||
Pass `false` to stop the module from adding a `@charset` declaration if it was
|
||||
missing from the file (and the file contained non-ascii characters).
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
postcss([ require('postcss-normalize-charset') ])
|
||||
```
|
||||
|
||||
See [PostCSS] docs for examples for your environment.
|
||||
|
||||
MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)
|
||||
|
||||
[PostCSS]: https://github.com/postcss/postcss
|
||||
[ci-img]: https://travis-ci.org/ben-eb/postcss-normalize-charset.svg
|
||||
[ci]: https://travis-ci.org/ben-eb/postcss-normalize-charset
|
||||
37
node_modules/postcss-normalize-charset/index.js
generated
vendored
37
node_modules/postcss-normalize-charset/index.js
generated
vendored
@@ -1,37 +0,0 @@
|
||||
var postcss = require('postcss');
|
||||
|
||||
var charset = 'charset';
|
||||
|
||||
module.exports = postcss.plugin('postcss-normalize-' + charset, function (opts) {
|
||||
opts = opts || {};
|
||||
|
||||
return function (css) {
|
||||
var charsetRule;
|
||||
var nonAsciiNode;
|
||||
var nonAscii = /[^\x00-\x7F]/;
|
||||
|
||||
css.walk(function (node) {
|
||||
if (node.type === 'atrule' && node.name === charset) {
|
||||
if (!charsetRule) {
|
||||
charsetRule = node;
|
||||
}
|
||||
node.remove();
|
||||
} else if (!nonAsciiNode && node.parent === css && nonAscii.test(node)) {
|
||||
nonAsciiNode = node;
|
||||
}
|
||||
});
|
||||
|
||||
if (nonAsciiNode) {
|
||||
if (!charsetRule && opts.add !== false) {
|
||||
charsetRule = postcss.atRule({
|
||||
name: charset,
|
||||
params: '"utf-8"'
|
||||
});
|
||||
}
|
||||
if (charsetRule) {
|
||||
charsetRule.source = nonAsciiNode.source;
|
||||
css.prepend(charsetRule);
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
63
node_modules/postcss-normalize-charset/package.json
generated
vendored
63
node_modules/postcss-normalize-charset/package.json
generated
vendored
@@ -1,63 +0,0 @@
|
||||
{
|
||||
"_from": "postcss-normalize-charset@^1.1.0",
|
||||
"_id": "postcss-normalize-charset@1.1.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-757nEhLX/nWceO0WL2HtYrXLk/E=",
|
||||
"_location": "/postcss-normalize-charset",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "postcss-normalize-charset@^1.1.0",
|
||||
"name": "postcss-normalize-charset",
|
||||
"escapedName": "postcss-normalize-charset",
|
||||
"rawSpec": "^1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/cssnano"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz",
|
||||
"_shasum": "ef9ee71212d7fe759c78ed162f61ed62b5cb93f1",
|
||||
"_spec": "postcss-normalize-charset@^1.1.0",
|
||||
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro/node_modules/cssnano",
|
||||
"author": {
|
||||
"name": "Bogdan Chadkin",
|
||||
"email": "trysound@yandex.ru"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ben-eb/postcss-charset/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"postcss": "^5.0.5"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Add necessary or remove extra charset with PostCSS",
|
||||
"devDependencies": {
|
||||
"ava": "^0.16.0",
|
||||
"eslint": "^1.4.1",
|
||||
"postcss-devtools": "^1.1.1"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/ben-eb/postcss-charset",
|
||||
"keywords": [
|
||||
"postcss",
|
||||
"css",
|
||||
"postcss-plugin",
|
||||
"charset"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "postcss-normalize-charset",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ben-eb/postcss-charset.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "eslint index.js test && ava"
|
||||
},
|
||||
"version": "1.1.1"
|
||||
}
|
||||
Reference in New Issue
Block a user