1.1.3 • Published 1 year ago

@fdiazpaccot/webpack-js-difference v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Webpack JS Difference

This is a scaffolding project made for educative reasons

You could extend the cli if you want.

USAGE

This cli uses the webpack stats file generated with webpack-stats-file

  1. Install weboack-stats-plugin npm i webpack-stats-plugin

  2. Initialize plugin within webpack in you main branch and run npm run build or yarn build

// webpack.config.js

const StatsWriterPlugin = require('webpack-stats-plugin');

module.exports = {
  // Otras configuraciones de Webpack...

  plugins: [
    new StatsWriterPlugin({
      filename: '../webpack-stats-base.json',
      stats: {
        assets: true,
      }
    })
  ]
};

or

// next.config.js
const { StatsWriterPlugin } = require('webpack-stats-plugin')

const nextConfig = {
  webpack: (config, _options) => {
    config.plugins.push(
      new StatsWriterPlugin({
        filename: '../webpack-stats-base.json',
        stats: {
          assets: true,
        }
      })
    );

    return config;
  }
};

module.exports = nextConfig;
  1. Move to your working branch and change the filename to '../.tmp/webpack-stats.json'
// webpack.config.js

const StatsWriterPlugin = require('webpack-stats-plugin');

module.exports = {
  // Otras configuraciones de Webpack...

  plugins: [
    new StatsWriterPlugin({
      filename: '../.tmp/webpack-stats.json',
      stats: {
        assets: true,
      }
    })
  ]
};

or

// next.config.js
const { StatsWriterPlugin } = require('webpack-stats-plugin')

const nextConfig = {
  webpack: (config, _options) => {
    config.plugins.push(
      new StatsWriterPlugin({
        filename: '../.tmp/webpack-stats.json',
        stats: {
          assets: true,
        }
      })
    );

    return config;
  }
};

module.exports = nextConfig;
  1. Run the cli using npx
npx @fdiazpaccot/webpack-js-difference -c
1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago