Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
gulp-amp-custom
Advanced tools
Gulp plugin to optimize CSS source for AMP HTML.
amp-custom is the core library.
npm install --save-dev gulp-amp-custom
const gulp = require('gulp');
const ampCustom = require('gulp-amp-custom');
gulp.task('test', () => {
return gulp.src('./src/test.css')
.pipe(ampCustom({
enableByteLimit: true
}))
.pipe(gulp.dest('./dist/'));
});
/* ./src/test.css */
@charset "UTF-8";
body {
font-size: 16px;
}
@page {
margin: 15mm;
}
@page hoge {
size: portrait;
margin: 15mm;
}
a {
color: #39c !important;
text-decoration: none;
}
@viewport {
min-width: 640px;
max-width: 800px;
}
@supports not (display: flex) {
.flexbox {
overflow: hidden;
}
.flexbox div {
float: left;
}
}
/* ./dist/test.css */
body{font-size:16px}a{color:#39c;text-decoration:none}
Type: Boolean
If the CSS source exceeds 50 KB, it issues an error.(Default: false
)
FAQs
Gulp plugin to optimize CSS source for AMP HTML.
The npm package gulp-amp-custom receives a total of 3 weekly downloads. As such, gulp-amp-custom popularity was classified as not popular.
We found that gulp-amp-custom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.