LoginSignup
0
2

More than 5 years have passed since last update.

LaravelでStorybook(for Vue.js+PostCSS)

Last updated at Posted at 2018-04-10

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設定を使う

0
2
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
0
2