summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/.storybook/webpack.config.js
blob: aeb97c1b5a24bf35e0706134c0eba767d2e6e67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var ASDCConfig = require('../webpack.common.js');

module.exports = function(baseConfig, configType) {
    baseConfig.module.loaders =  baseConfig.module.loaders.concat([
        {test: /\.(css|scss)$/, loaders: ['style', 'css?sourceMap', 'sass?sourceMap']},

        // required for font icons
        {test: /\.(woff|woff2)(\?.*)?$/, loader: 'url-loader?limit=16384&mimetype=application/font-woff'},
        {test: /\.(ttf|eot|otf)(\?.*)?$/, loader: 'file-loader'},
        {test: /\.(png|jpg|svg)(\?.*)?$/, loader: 'url-loader?limit=16384'},

        {test: /\.json$/, loaders: ['json']},
        {test: /\.html$/, loaders: ['html']}
    ]);
    baseConfig.resolve = { root: ASDCConfig.resolve.modules, alias:  ASDCConfig.resolve.alias };
    return baseConfig;
}