AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 1 | var ASDCConfig = require('../webpack.common.js'); |
| 2 | |
| 3 | module.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 | } |