UNPKG

roadhog

Version:

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

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