npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

carefree-scripts

v1.0.4

Published

Configuration and scripts for Create React App.

Readme

carefree-scripts

fork Create React App ,进行改造成想要的配置数据

  1. watch 配置是生产的使用配置 ,支持修改的(直接使用 webpack 的 watch ),
  2. start 原来的不变,(好像不支持 multicompiler )
  3. build 原来的配置,支持修改的

自定义配置文件

// config/index.js
const {
  getWbpackBarPlugins,
  restOutPut,
  restWebpackManifestPlugin,
  clearHtmlTemp,
} = require('carefree-scripts/config/overrides/utils');
const path = require('path');
module.exports = {
  // 这 4 个 环境变量可以重写
  INLINE_RUNTIME_CHUNK: '',
  GENERATE_SOURCEMAP: '',
  ESLINT_NO_DEV_ERRORS: '',
  DISABLE_ESLINT_PLUGIN: '',

  // 重写 paths 地址
  paths: {
    appIndexJs: path.join(process.cwd(), 'src/client.js'),
  },
  // 重写 最终的配置
  overridesWebpack: conf => {
    if (process.env.NODE_ENV === 'development') {
      return conf;
    }
    // 使用 multicompiler 方式 build 和 watch
    const confArr = [];
    Array.from({ length: 2 }).forEach((_, index) => {
      let ops = { ...conf };
      if (!index) {
        ops = getWbpackBarPlugins(ops, { name: 'server' });
        ops = restOutPut(ops, { filename: 'server.js' });
        ops.entry = path.join(process.cwd(), 'src/server.js');
        ops = restWebpackManifestPlugin(ops, 'server');
        ops = clearHtmlTemp(ops);
        ops.devtool = false;
      } else {
        ops = getWbpackBarPlugins(ops, { name: 'client' });
        ops = restOutPut(ops, { filename: 'client.js' });
        ops = restWebpackManifestPlugin(ops, 'client');
        ops = clearHtmlTemp(ops);
      }
      confArr.push(ops);
    });
    return confArr;
  },
};