Giter Site home page Giter Site logo

catsnake11 / webpack-ops Goto Github PK

View Code? Open in Web Editor NEW
253.0 7.0 6.0 3.58 MB

๐Ÿ“ webpack bundle visualization // optimization // config tool

TypeScript 85.79% HTML 0.12% CSS 9.47% JavaScript 4.62%
webpack webpack-bundle react electron typescript front-end-development application d3 plugin analyzer

webpack-ops's Introduction

WebpackOps

WebpackOps is a Webpack bundle visualization, optimization and customization tool that helps developers streamline the size of their webpack bundle through customized plugin selection and webpack config file generation. Webpack Ops also allows developers to visualize their bundle assets through interactive analysis charts.

Installation

1. Clone or Download the repository.

git clone https://github.com/CatSnake11/Webpack-Ops.git

2. Open the repository, go to your terminal and run the following commands to download all required libraries and generate build:

npm install
npm run webpackops

3. Once the build has completed, open a new tab in your terminal and run the following command to launch the application:

npm start

Usage

WebpackOps has three tabs - Home, Plugins, and Webpack Config. Below, please find instructions on how to use each tab:

Home

  • Select your package.json file by clicking the "Find Package.JSON" button and selecting your package.json file.
  • Choose your desired build configuration and click "Select Config" button.
  • If you already have an existing stats.json file, click "Load Stats File" button and select the stats.json file that was previously generated in your local repository. To generate a new stats.json file using your selected config, click the "Generate Stats File" button, and then load your new stats.json file.
  • Enjoy! You can now analyze your Webpack bundle in the four charts that are provided - Sunburst, Zoomable Sunburst, Treemap, and Zoomable Treemap.

Plugins

  • Once you have loaded your package.json and stats.json files on the Home tab, select the plugins you would like to install in your Webpack bundle.
  • Click the "Generate Webpack Config" button, and then click the "Continue" button on the modal to generate a new "WebpackOpsAssets" folder in your project's root directory containing your new webpack.config and stats.json files. Additionally, a preview of your new webpack.config file with selected plugins will be displayed in the code window.
  • Click the "Show Size Change" button to display a visual representation of your bundle size change.

Webpack Config

  • This tab will guide you in generating a custom webpack.config file for your project. First, click the "Select" button to select your root directory where you would like to generate your webpack.config file.
  • Next, select the languages, libraries, and frameworks you would like to add to your new webpack.config. You can preview what your config will look like in the code window on the right.
  • Once you have selected all desired features, click "Create Webpack Config File" to generate a new webpack.config file in your root directory.

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

webpack-ops's People

Contributors

davemarquess avatar heiyeunl avatar tonyhudgins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

webpack-ops's Issues

Its not possible to select a config

I'm not sure if this could be the problem, but I have a package.json for two projects and each one has its own webpack config file. The structure would be something like this:

- src/
  - projectA/
  - projectB/
- config/
  - projectA/
     - webpack.config.js
  - projectB/
     - webpack.config.js
- package.json

Firts I selected the package.json file and then after clicking on "Select config" this happens:
wbops

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.