UNPKG

react-with-styles-interface-amp-aphrodite

Version:

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

6 lines (5 loc) 203 B
// 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' export default function isAmp() { return process.env.AMP; }