uapte
This commit is contained in:
35
node_modules/gulp-cssnano/CHANGELOG.md
generated
vendored
35
node_modules/gulp-cssnano/CHANGELOG.md
generated
vendored
@@ -1,35 +0,0 @@
|
||||
# 2.1.3
|
||||
|
||||
* Drops deprecated gulp-util dependency (thanks @demurgos).
|
||||
* Replaces `new Buffer(x)` with `Buffer.from(x)` in newer Node environments.
|
||||
|
||||
# 2.1.2
|
||||
|
||||
* Fixes an issue where gulp-cssnano was not passing on sourcemap errors and was
|
||||
crashing instead.
|
||||
|
||||
# 2.1.1
|
||||
|
||||
* Added more keywords for easier discovery on npm.
|
||||
|
||||
# 2.1.0
|
||||
|
||||
* Print a CssSyntaxError when the input CSS could not be parsed properly with
|
||||
PostCSS (thanks to @stelund).
|
||||
|
||||
# 2.0.1
|
||||
|
||||
* Bump object-assign and vinyl-sourcemaps-apply to latest versions.
|
||||
|
||||
# 2.0.0
|
||||
|
||||
* Upgrade to cssnano `3.0.0`.
|
||||
|
||||
# 1.1.0
|
||||
|
||||
* Upgrade to cssnano `2.0.0`.
|
||||
* Bump other runtime dependencies.
|
||||
|
||||
# 1.0.0
|
||||
|
||||
* Initial release.
|
||||
22
node_modules/gulp-cssnano/LICENSE-MIT
generated
vendored
22
node_modules/gulp-cssnano/LICENSE-MIT
generated
vendored
@@ -1,22 +0,0 @@
|
||||
Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
|
||||
|
||||
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.
|
||||
57
node_modules/gulp-cssnano/README.md
generated
vendored
57
node_modules/gulp-cssnano/README.md
generated
vendored
@@ -1,57 +0,0 @@
|
||||
# [gulp][gulp]-cssnano [][ci] [][npm] [][deps]
|
||||
|
||||
> Minify CSS with [cssnano](https://github.com/ben-eb/cssnano).
|
||||
|
||||
## Install
|
||||
|
||||
With [npm](https://npmjs.org/package/gulp-cssnano) do:
|
||||
|
||||
```
|
||||
npm install gulp-cssnano --save-dev
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var gulp = require('gulp');
|
||||
var cssnano = require('gulp-cssnano');
|
||||
|
||||
gulp.task('default', function() {
|
||||
return gulp.src('./main.css')
|
||||
.pipe(cssnano())
|
||||
.pipe(gulp.dest('./out'));
|
||||
});
|
||||
```
|
||||
|
||||
## Source Maps
|
||||
|
||||
gulp-cssnano supports [gulp-sourcemaps]:
|
||||
|
||||
```js
|
||||
var gulp = require('gulp');
|
||||
var cssnano = require('gulp-cssnano');
|
||||
var sourcemaps = require('gulp-sourcemaps');
|
||||
|
||||
gulp.task('default', function () {
|
||||
return gulp.src('main.css')
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(cssnano())
|
||||
.pipe(sourcemaps.write('.'))
|
||||
.pipe(gulp.dest('./out'));
|
||||
});
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests are welcome. If you add functionality, then please add unit tests
|
||||
to cover it.
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Briggs](http://beneb.info)
|
||||
|
||||
[ci]: https://travis-ci.org/ben-eb/gulp-cssnano
|
||||
[deps]: https://gemnasium.com/ben-eb/gulp-cssnano
|
||||
[gulp]: https://github.com/gulpjs/gulp
|
||||
[gulp-sourcemaps]: https://github.com/floridoo/gulp-sourcemaps
|
||||
[npm]: http://badge.fury.io/js/gulp-cssnano
|
||||
52
node_modules/gulp-cssnano/index.js
generated
vendored
52
node_modules/gulp-cssnano/index.js
generated
vendored
@@ -1,52 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var nano = require('cssnano'),
|
||||
bufferFrom = require('buffer-from'),
|
||||
assign = require('object-assign'),
|
||||
PluginError = require('plugin-error'),
|
||||
Transform = require('stream').Transform,
|
||||
applySourceMap = require('vinyl-sourcemaps-apply'),
|
||||
|
||||
PLUGIN_NAME = 'gulp-cssnano';
|
||||
|
||||
module.exports = function (opts) {
|
||||
opts = opts || {};
|
||||
var stream = new Transform({objectMode: true});
|
||||
|
||||
stream._transform = function (file, encoding, cb) {
|
||||
if (file.isNull()) {
|
||||
return cb(null, file);
|
||||
}
|
||||
if (file.isStream()) {
|
||||
var error = 'Streaming not supported';
|
||||
return cb(new PluginError(PLUGIN_NAME, error));
|
||||
} else if (file.isBuffer()) {
|
||||
return nano.process(String(file.contents), assign(opts, {
|
||||
map: (file.sourceMap) ? {annotation: false} : false,
|
||||
from: file.relative,
|
||||
to: file.relative
|
||||
})).then(function (result) {
|
||||
if (result.map && file.sourceMap) {
|
||||
applySourceMap(file, String(result.map));
|
||||
}
|
||||
file.contents = bufferFrom(result.css);
|
||||
this.push(file);
|
||||
cb();
|
||||
}.bind(this))
|
||||
.catch(function (error) {
|
||||
var errorOptions = {fileName: file.path};
|
||||
if (error.name === 'CssSyntaxError') {
|
||||
error = error.message + error.showSourceCode();
|
||||
errorOptions.showStack = false;
|
||||
}
|
||||
// Prevent stream’s unhandled exception from
|
||||
// being suppressed by Promise
|
||||
setImmediate(function () {
|
||||
cb(new PluginError(PLUGIN_NAME, error));
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
return stream;
|
||||
};
|
||||
75
node_modules/gulp-cssnano/package.json
generated
vendored
75
node_modules/gulp-cssnano/package.json
generated
vendored
@@ -1,75 +0,0 @@
|
||||
{
|
||||
"_from": "gulp-cssnano@^2.1.3",
|
||||
"_id": "gulp-cssnano@2.1.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-r8qdX5pTXsBb/IRm9loE8Ijz8UiPW/URMC/bKJe4FPNHRaz4aEx8Bev03L0FYHd/7BSGu/ebmfumAkpGuTdenA==",
|
||||
"_location": "/gulp-cssnano",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "gulp-cssnano@^2.1.3",
|
||||
"name": "gulp-cssnano",
|
||||
"escapedName": "gulp-cssnano",
|
||||
"rawSpec": "^2.1.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.1.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/gulp-cssnano/-/gulp-cssnano-2.1.3.tgz",
|
||||
"_shasum": "02007e2817af09b3688482b430ad7db807aebf72",
|
||||
"_spec": "gulp-cssnano@^2.1.3",
|
||||
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro",
|
||||
"author": {
|
||||
"name": "Ben Briggs",
|
||||
"email": "beneb.info@gmail.com",
|
||||
"url": "http://beneb.info"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/ben-eb/gulp-cssnano/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"buffer-from": "^1.0.0",
|
||||
"cssnano": "^3.0.0",
|
||||
"object-assign": "^4.0.1",
|
||||
"plugin-error": "^1.0.1",
|
||||
"vinyl-sourcemaps-apply": "^0.2.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Minify CSS with cssnano.",
|
||||
"devDependencies": {
|
||||
"gulp-sourcemaps": "^1.5.2",
|
||||
"tap-spec": "^4.0.2",
|
||||
"tape": "^4.0.0",
|
||||
"vinyl": "^2.1.0"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE-MIT",
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/ben-eb/gulp-cssnano",
|
||||
"keywords": [
|
||||
"cssnano",
|
||||
"minify",
|
||||
"minification",
|
||||
"optimise",
|
||||
"optimisation",
|
||||
"css",
|
||||
"gulpplugin",
|
||||
"postcss"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "gulp-cssnano",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/ben-eb/gulp-cssnano.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tape test.js | tap-spec"
|
||||
},
|
||||
"version": "2.1.3"
|
||||
}
|
||||
Reference in New Issue
Block a user