san-cli-service
Version:
定制化的前端工程构建工具
22 lines (20 loc) • 468 B
JavaScript
/**
* Copyright (c) Baidu Inc. All rights reserved.
*
* This source code is licensed under the MIT license.
* See LICENSE file in the project root for license information.
*
* @file san-loader
* @author ksky521
*/
module.exports = ({isProd}) => {
return {
name: 'san-loader',
loader: 'san-loader',
options: {
// hotReload: !isProd,
// sourceMap: !isProd,
// minimize: isProd
}
};
};