about summary refs log tree commit diff
path: root/storybook/webpack.config.js
blob: 054889b036513e2a55e557272633e2fe003a2b66 (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'),
    },
  },
};