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 🙏

© 2024 – Pkg Stats / Ryan Hefner

toolkit-ts-x

v1.0.3

Published

<div align="center"> <a href="https://gridea.dev"> <img src="https://gitee.com/xueBingChuan/nodejs-webserve/raw/master/src/static/face.jpg" width="80px" height="80px"> </a> <h1 align="center"> webpack-case </h1> <h3 align="center">

Downloads

3

Readme

插件说明

使用说明

安装:

npm install

运行

npm run dev

打包内测版本:

npm run build-demo

打包部署版本:

npm run build-demo

注意⚠️:比较复杂的项目中,编译的时候对CPU和内存需求都会变大。需要内存2-3G。node本身,或者说v8本身有一个默认配置:Currently, by default v8 has a memory limit of 512mb on 32-bit systems, and 1gb on 64-bit systems. The limit can be raised by setting --max-old-space-size to a maximum of ~1gb (32-bit) and ~1.7gb (64-bit), but it is recommended that you split your single process into several workers if you are hitting memory limits.所以我们需要配置一下运行内存。修改ng.cmd,追加–max_old_space_size=4096 避免aot时内存溢出

优化性方案:

1.使用Devtool配置实现构建后的代码快速定位调试

2.设置小于1m的图片转为Base64编码存储,减少服务请求压力

3.采用babel-loader和进行多进程打包,优化打包速度

4.采用oneOf优化loader的重复解析调用

5.文件名添加contentHash值缓存文件,提高命中效率

6.将jq,vue,vuex,element采用cdn外部引入,减少项目体积及优化响应速度

7.使用Lighthouse行项目性能瓶颈筛查优化

8.使用jest构建多个测试单元,强化代码健壮性

9.弃用了optimize.OccurenceOrderPlugin,NoErrorsPlugin

补充