about summary refs log tree commit diff
path: root/storybook/webpack.config.js
blob: e16910b2984f51b87fb09516a8d9dd36f1000318 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const path = require('path');

module.exports = {
  module: {
    rules: [
      {
        test: /\.(jpg|jpeg|png|gif|svg|eot|ttf|woff|woff2)$/i,
        loader: 'url-loader',
      },
      {
        test: /.scss$/,
        loaders: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
      },
    ],
  },
  resolve: {
    alias: {
      mastodon: path.resolve(__dirname, '..', 'app', 'javascript', 'mastodon'),
    },
  },
};