25 Commits

Author SHA1 Message Date
Ryan Roemer
43df050ae7 CI: Add windows. (#285) 2019-05-15 12:21:09 -07:00
parkerziegler
5f6e2e4d2c Migrate to using neo-blessed as underlying blessed renderer. 2019-02-12 16:51:57 -08:00
Elrey Belmonti
c486351491 add unit testing for utils/format-modules 2018-10-01 14:34:15 -07:00
Ryan Roemer
8a32cd19ff
[Major] Integrate inspectpack3 - faster, better, and more colorful! (#249)
This is a major update to `webpack-dashboard` with breaking changes. And a lot of speed and coolness.

## Breaking changes

- Requires node6+.
- Use the webpack internal stats object instead of real bundles. This is faster and with less futzing / parsing on the dashboard's end. Should permanently fix the `no code sections` found errors.
- We've removed command flags / plugin options that no longer apply like `--root`, etc.

### Modules

- Removed `min` and `min+gz` estimated file sizes from modules outputs. This dramatically speeds up the dashboard and reduces CPU usage.

### Versions

- Version skews should be detected more accurately and much faster thanks to dramatically improved heuristics from `inspectpack`.

### Duplicates

- Duplicates now reports on duplicate files that are (1) completely identical, and (2) the same package name and file path but with different sources. The first are low hanging fruit for optimizations in your build -- you've literally got the same thing multiple times. The latter needs to be coalesced at the package dependency level -- something the versions output can help with.

## Issues

- Upgrade hooks to work in webpack1-4 with abstraction. Fixes #240

## Refactoring

- Switch from `chalk` to using Blessed's built-in tags for coloring. This is definitely the way to go as things like table spacing don't work with chalk strings and work like a charm with Blessed tags.
- Update dependencies and remove lots of unused things (like `lodash`, `chalk`, `bluebird` and a whole lot of `babel*` that apparently wasn't used anyways).
    - New `inspectpack` is way slimmer and faster, with no more binary dependencies!
- Switch to yarn-only workflow in dev.
- Bump Travis node versions.
2018-05-24 13:12:52 -07:00
Ryan Roemer
7f99b31c5f
Feature: Enable opt-out of minified, gzip calculations. (#230)
Adds `minified` and `gzip` configuration options that can optionally disable the relatively expensive per-module calculations of each by `inspectpack` under the hood.

- Fixes #227
- Adds `minified` and `gzip` plugin options, both defaulted to `true` so we don't need a semver major bump.
- Adds more README documentation and explanations about CPU intensive workloads and the `inspectpack` cache.
2018-01-23 08:37:59 -08:00
Fahmi Akbar Wildana
338cc53eab fix issue when bundle don't have metrics at all (#221) 2017-11-08 14:58:00 -08:00
Carlos Paelinck
6141b80000 Use path.sep for path separator 2017-10-05 09:23:10 -07:00
Carlos Paelinck
e5bc557af4 Fix WP 3 size reporting, disable inspectpack in minimal 2017-10-04 13:08:12 -07:00
Tyler Thompson
9d4549230d Revert "Use prettier"
This reverts commit bf0f0f99834130b881fbc063da7e744148fc7780.
2017-09-10 20:58:26 -07:00
Tyler Thompson
bf0f0f9983 Use prettier 2017-09-10 20:56:21 -07:00
Tyler Thompson
b067205e95 Fix busted error messages; fix percentages 2017-04-19 21:52:53 -07:00
Tyler Thompson
b6903ea03a Move inspectpack daemon to the plugin and add problem pane support 2017-04-13 17:15:55 -07:00
Tyler Thompson
dd3fa3ebf4 Use new built-in inspectpack daemon; restore version numbers; add colors and error state 2017-04-06 15:19:51 -07:00
Tyler Thompson
333c99db9d Initial pass at min+gz sizes using inspectpack 2017-03-31 15:30:41 -07:00
Tyler Thompson
c748af7747 Fix remaining lint issues and convert to node 4 ES6 2017-03-31 10:12:04 -07:00
Tyler Thompson
9894fe5665 Run eslint --fix 2017-03-31 10:12:04 -07:00
Francesco Soncina
5ee4f4e8a6 remove es6 syntax, fixes #126 (#128) 2016-10-07 15:44:15 -04:00
Leon Chen
3158e2f113 Showing version alongside name/size/percentage in modules table (#71)
* show pkg version in modules table (#51)

* attach version after package name, fix module path regex

* style consistencies
2016-09-22 16:06:13 -04:00
Dominik Schmidt
bffece0613 fix #38 and also show scoped modules (#46)
- add a `getPosition` method to the `format-modules.js` file
- if module begins with `@` don't strip after first path seperator
2016-08-17 21:16:35 -04:00
Ken Wheeler
9e5cf1313f node < 4 compat 2016-08-15 16:09:32 -04:00
Ken Wheeler
87a4b6dbc0 Merge branch 'master' of github.com:FormidableLabs/webpack-dashboard
# Conflicts:
#	utils/format-modules.js
2016-08-15 09:32:03 -04:00
Ken Wheeler
2655a1aeb1 Fixing layout on hyperterm, removing es6 for <4.2 2016-08-15 09:30:55 -04:00
Cale Newman
d5de6461fa Indent the child modules' size
Similar to the other columns.
2016-08-14 15:02:58 -05:00
Cale Newman
bd17924807 Indent the child modules' size percentage
Before, it was slightly confusing, because I was quickly scanning the
percentages and didn't know why a module down the list was at 90%,
before realizing it was 90% of its dependent module. Now it should be
more immediately obvious.
2016-08-14 14:34:03 -05:00
Ken Wheeler
75ddff3120 Initial commit 2016-08-14 14:41:04 -04:00