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

module.exports = {
  module: {
    loaders: [
      {
        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: {
    modulesDirectories: [
      path.resolve(__dirname, '..', 'storybook'),
      path.resolve(__dirname, '..', 'app', 'javascript'),
      path.resolve(__dirname, '..', 'node_modules'),
    ],
  },
};