Open ldw1216 opened 6 years ago
use postcss-import plug code:
.babelrc { "presets": [ [ "next/babel", { "styled-jsx": { "plugins": [ "styled-jsx-plugin-postcss" ] } } ] ] }
package.json "postcss": { "plugins": { "postcss-cssnext": { "browsers": [ "last 2 versions", "> 5%" ] }, "postcss-nested": {}, "postcss-import": {} } }
use postcss-import plug code:
.babelrc { "presets": [ [ "next/babel", { "styled-jsx": { "plugins": [ "styled-jsx-plugin-postcss" ] } } ] ] }
package.json "postcss": { "plugins": { "postcss-cssnext": { "browsers": [ "last 2 versions", "> 5%" ] }, "postcss-nested": {}, "postcss-import": {} } }