GithubHelp home page GithubHelp logo

isabella232 / wp-scripts-webpack-clean-bug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xwp/wp-scripts-webpack-clean-bug

0.0 0.0 0.0 138 KB

Demo of the https://github.com/WordPress/gutenberg/issues/35980

JavaScript 100.00%

wp-scripts-webpack-clean-bug's Introduction

This repository demonstrates the issue with the CleanWebpackPlugin webpack plugin removing build output in multi-process webpack configurations such as webpack.config.js.

See this GitHub action run that shows that the js/dist/modern output directory is empty after the build:

$ find js/dist
js/dist
js/dist/legacy
js/dist/legacy/legacy.js
js/dist/legacy/legacy.asset.php
js/dist/modern

even though webpack built both:

$ npm run build

> wp-scripts-webpack-clean-bug@ build /home/runner/work/wp-scripts-webpack-clean-bug/wp-scripts-webpack-clean-bug
> wp-scripts build

asset legacy.js 9.01 KiB [emitted] [minimized] (name: legacy)
asset legacy.asset.php 95 bytes [emitted] (name: legacy)
Entrypoint legacy 9.1 KiB = legacy.js 9.01 KiB legacy.asset.php 95 bytes
orphan modules 16.3 KiB [orphan] 1 module
./js/src/legacy.js + 1 modules 16.3 KiB [built] [code generated]
./js/src/modern.js 101 bytes [built] [code generated]
webpack 5.60.0 compiled successfully in 1139 ms

asset modern.asset.php 95 bytes [emitted] (name: modern)
asset modern.js 78 bytes [emitted] [minimized] (name: modern)
Entrypoint modern 173 bytes = modern.js 78 bytes modern.asset.php 95 bytes
./js/src/modern.js 101 bytes [built] [code generated]
webpack 5.60.0 compiled successfully in 696 ms

wp-scripts-webpack-clean-bug's People

Contributors

kasparsd avatar

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.