mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-01-26 22:54:43 +00:00
16 lines
264 B
JavaScript
16 lines
264 B
JavaScript
import _ from 'lodash';
|
|
|
|
export default (config, options) => {
|
|
if (options.optimize) {
|
|
config = _.extend({}, config, {
|
|
output: _.extend({}, config.output, {
|
|
filename: '[name].min.js'
|
|
})
|
|
});
|
|
|
|
return config;
|
|
}
|
|
|
|
return config;
|
|
}
|