arackaf / customize-cra

Override webpack configurations for create-react-app 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add optimize.

hieusmiths opened this issue · comments

I saw a option setWebpackOptimizationSplitChunks(target)

Can you helpe me write example for it.

Thank so much.

const { override } = require("customize-cra");

module.exports = override(
  () => config => {
    config.optimization = {};
    return config;
  },
  ...
);