1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

print a deprecated message for next/css (#421)

This commit is contained in:
Naoyuki Kanezawa 2016-12-18 06:59:38 +09:00 committed by Guillermo Rauch
parent 37a9c661ff
commit 1e70324a41

View file

@ -1,5 +1,9 @@
const css = require('glamor')
if (process.env.NODE_ENV !== 'production') {
console.error('Warning: \'next/css\' is deprecated. Please use styled-jsx syntax instead.')
}
/**
* Expose style as default and the whole object as properties
* so it can be used as follows: