mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-02-05 03:24:29 +00:00
27 lines
540 B
JavaScript
27 lines
540 B
JavaScript
|
import _ from 'lodash';
|
||
|
|
||
|
export default (config, options) => {
|
||
|
if (options.ie8) {
|
||
|
config = _.extend({}, config, {
|
||
|
entry: {
|
||
|
bundle: './ie8/src.js'
|
||
|
},
|
||
|
output: {
|
||
|
filename: '[name].js',
|
||
|
path: './ie8-built/assets',
|
||
|
publicPath: '/assets/'
|
||
|
},
|
||
|
externals: undefined,
|
||
|
module: {
|
||
|
loaders: config.module.loaders.concat([
|
||
|
{ test: /\.jpe?g$|\.gif$|\.png$/, loader: 'file?name=[name].[ext]' }
|
||
|
])
|
||
|
}
|
||
|
});
|
||
|
|
||
|
return config;
|
||
|
}
|
||
|
|
||
|
return config;
|
||
|
}
|