Help us understand the problem. What is going on with this article?

LaravelでStorybook(for Vue.js+PostCSS)

More than 1 year has passed since last update.

laravel mix を使うとPostCSSの設定は
例えば、

webpack.mix.js
mix.options({
  postCss:[
    require('postcss-import'),
    require('postcss-cssnext')
  ]
});

の様に書く必要があるため、StorybookがPostCSSの設定を共有できないので、
Storybookのために

postcss.config.js
module.exports = {
  plugins: {
    'postcss-import': {},
    'postcss-cssnext': {}
  }
}

とファイル作成・設定することで一旦解決。
DRYに書きたい。

参考

laravel-mixでvueにカスタムなPostCSS設定を使う

bolobob
sencorp
幼稚園・保育園向けインターネット写真サービス「はいチーズ!」を提供しています。
https://sencorp.co.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした