3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

@nuxtjs/storybookを入れた時のPostCSSのWARNを消す

Posted at

問題

@nuxtjs/storybook を Quick Setup 通りに入れて npm run dev をすると、下の WARN がめっちゃ出る。消したい。

WARN  You did not set any plugins, parser, or stringifier. Right now, PostCSS does nothing. Pick plugins for your case on https://www.postcss.parts/ and use them in postcss.config.js.

解決方法

nuxt.config.js の buildModules に @nuxt/postcss8 を追加する。

 buildModules: [
  ...
  '@nuxt/postcss8'
 ],

@nuxt/postcss8 は個別にインストールしなくてもいいらしい。

参考

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?