blob: aeb97c1b5a24bf35e0706134c0eba767d2e6e67c [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001var ASDCConfig = require('../webpack.common.js');
2
3module.exports = function(baseConfig, configType) {
4 baseConfig.module.loaders = baseConfig.module.loaders.concat([
5 {test: /\.(css|scss)$/, loaders: ['style', 'css?sourceMap', 'sass?sourceMap']},
6
7 // required for font icons
8 {test: /\.(woff|woff2)(\?.*)?$/, loader: 'url-loader?limit=16384&mimetype=application/font-woff'},
9 {test: /\.(ttf|eot|otf)(\?.*)?$/, loader: 'file-loader'},
10 {test: /\.(png|jpg|svg)(\?.*)?$/, loader: 'url-loader?limit=16384'},
11
12 {test: /\.json$/, loaders: ['json']},
13 {test: /\.html$/, loaders: ['html']}
14 ]);
15 baseConfig.resolve = { root: ASDCConfig.resolve.modules, alias: ASDCConfig.resolve.alias };
16 return baseConfig;
17}