UNPKG

roadhogx

Version:

Cli tool for serve and build react app, based on roadhog, support JSON pattern config, support more features

14 lines (12 loc) 349 B
import { join } from 'path'; export default function (webpackConfig, paths, includes = [], babelOptions) { includes.forEach((include) => { webpackConfig.module.rules.push({ test: /\.(js|jsx)$/, include: join(paths.appDirectory, include), loader: 'babel', options: babelOptions, }); }); return webpackConfig; }