UNPKG

react-with-styles-interface-amp-aphrodite

Version:

An Aphrodite interface for react-with-styles that supports pages rendered using Google's AMP.

11 lines (10 loc) 295 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = isAmp; // Returns whether the page is an amp page or not. 'process.env.AMP' should be replaced by // webpack on compile-time with 'true' or 'false' function isAmp() { return process.env.AMP; }