UNPKG

roadhog

Version:

Cli tool for serve and build react app, based on create-react-app, support JSON pattern config.

22 lines (17 loc) 521 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (webpackConfig, paths) { var includes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; includes.forEach(function (include) { webpackConfig.module.loaders.push({ test: /\.(js|jsx)$/, include: (0, _path.join)(paths.appDirectory, include), loader: 'babel' }); }); return webpackConfig; }; var _path = require('path'); module.exports = exports['default'];