Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-amp-custom with all npm packages installed. Try it out:

var gulpAmpCustom = require("gulp-amp-custom")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-amp-custom v1.3.0

Gulp plugin to optimize CSS source for AMP HTML.


License: MIT npm version Build Status

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')
            enableByteLimit: true
/* ./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 */



Type: Boolean

If the CSS source exceeds 50 KB, it issues an error.(Default: false)



MIT License.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free