Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dry: true result different from real run #198

Open
ybelenko opened this issue Mar 25, 2021 · 0 comments
Open

dry: true result different from real run #198

ybelenko opened this issue Mar 25, 2021 · 0 comments

Comments

@ybelenko
Copy link

Issue description or question

With dry run option on plugin doesn't remove .htaccess file in subfolder. When I turn dry off(dry: false or omitted) it removes /public/admin/.htaccess file. Since dry option gives different result I think it's not related to my ignore pattern.

Webpack Config

// paste your webpack config here
module.exports = {
    entry: path.resolve(__dirname, 'src/index.jsx'),
    output: {
      publicPath: '/',
      path: path.resolve(__dirname, 'public'),
    },
    plugins: [
      new CleanWebpackPlugin({
        cleanOnceBeforeBuildPatterns: ['**/*', '!.htaccess', '!**/.htaccess'],
        cleanStaleWebpackAssets: false,
        dry: true,
      }),
    ],
}
clean-webpack-plugin: dry public/04c32ae08800337a45225a7e807d8e6c.woff
clean-webpack-plugin: dry public/05cc2c0fc3e3121d720b5ee70cfd6afd.woff2
clean-webpack-plugin: dry public/0907d2be1ee9fab7beff3730a528f091.woff
clean-webpack-plugin: dry public/0e74048a09664ef82e1d61c7f34eeb2e.png
clean-webpack-plugin: dry public/0fc0ecc099328fe82619fee6430b80ab.svg
clean-webpack-plugin: dry public/1041b0b69e6bef700a6527f96da28ab0.svg
clean-webpack-plugin: dry public/156fb29fa0f83188d596c9e07d79d277.svg
clean-webpack-plugin: dry public/1c47db5a64cd8e3d983259b371d0d5fa.woff
clean-webpack-plugin: dry public/2f0cd8b46b478d2ef8b3211a9f20c773.svg
clean-webpack-plugin: dry public/3419c846efd4ec58e4a740b3d924ec3e.svg
clean-webpack-plugin: dry public/3b454dabbbc54e81472bb63c19941bbe.woff
clean-webpack-plugin: dry public/42da41ae25d3b3c862fff0c428d236a8.woff
clean-webpack-plugin: dry public/4da4c19319100df7734c4643db00d6c7.woff
clean-webpack-plugin: dry public/62fcce6dcf3f44b5f987d84394b26724.woff
clean-webpack-plugin: dry public/659104546f390e057efeda29343c29b1.woff2
clean-webpack-plugin: dry public/6f17adb816bf58f7adbc058213032bba.svg
clean-webpack-plugin: dry public/792709350e94a6a8de85b2704e626d23.png
clean-webpack-plugin: dry public/7929be933d3552eb77ae74ed482edd4c.woff2
clean-webpack-plugin: dry public/82b0c945e063dcd47648d66785b08c87.woff2
clean-webpack-plugin: dry public/83f8dbd217e442fe487c0ef9a37c1ae2.woff2
clean-webpack-plugin: dry public/8be5bd6e952f42a5a91d7b9c1cd83647.svg
clean-webpack-plugin: dry public/91ba30cbf85d016293faaffca00c70f4.woff2
clean-webpack-plugin: dry public/91d277315ac14dd5b871d273ee5664b7.svg
clean-webpack-plugin: dry public/9566aaac2083dccdc16ea3f2f2135e59.woff2
clean-webpack-plugin: dry public/9b68e57e43989bf1b8831da7e4148e9d.svg
clean-webpack-plugin: dry public/9e82cdd824b75867f207203d8a4f2e6b.svg
clean-webpack-plugin: dry public/a3e4b461d6470c98737fb588ff875bc5.svg
clean-webpack-plugin: dry public/a78d486236cc870b23add126c957a96b.woff
clean-webpack-plugin: dry public/admin
clean-webpack-plugin: dry public/admin/04c32ae08800337a45225a7e807d8e6c.woff
clean-webpack-plugin: dry public/admin/3b454dabbbc54e81472bb63c19941bbe.woff
clean-webpack-plugin: dry public/admin/5b35a39c5f877ba43637e183a0d6c425.png
clean-webpack-plugin: dry public/admin/659104546f390e057efeda29343c29b1.woff2
clean-webpack-plugin: dry public/admin/6f17adb816bf58f7adbc058213032bba.svg
clean-webpack-plugin: dry public/admin/9566aaac2083dccdc16ea3f2f2135e59.woff2
clean-webpack-plugin: dry public/admin/b50824fe4ff335be8c64463129658220.woff2
clean-webpack-plugin: dry public/admin/d5d2cff5228e83ca0dffe52a9a04f424.woff
clean-webpack-plugin: dry public/admin/index.html
clean-webpack-plugin: dry public/admin/main.css
clean-webpack-plugin: dry public/admin/main.css.map
clean-webpack-plugin: dry public/admin/main.js
clean-webpack-plugin: dry public/admin/main.js.LICENSE.txt
clean-webpack-plugin: dry public/admin/main.js.map
clean-webpack-plugin: dry public/afe022459c968607e810fed60adacd58.svg
clean-webpack-plugin: dry public/b50824fe4ff335be8c64463129658220.woff2
clean-webpack-plugin: dry public/ba66f53e94dde1e31fac1932cc739874.woff2
clean-webpack-plugin: dry public/bdbb939b4fb738395aee545df46735c7.svg
clean-webpack-plugin: dry public/c10b287a720f916bdd3f5673c7ddc487.svg
clean-webpack-plugin: dry public/c741e0a0042bfe8f7db27e39ca416e8d.svg
clean-webpack-plugin: dry public/c7b880d9ff70cd596455a3e0f3b0382d.woff
clean-webpack-plugin: dry public/d5d2cff5228e83ca0dffe52a9a04f424.woff
clean-webpack-plugin: dry public/f30df9add886db4ddba84ba52f743536.woff2
clean-webpack-plugin: dry public/index.html
clean-webpack-plugin: dry public/main.css
clean-webpack-plugin: dry public/main.css.map
clean-webpack-plugin: dry public/main.js
clean-webpack-plugin: dry public/main.js.LICENSE.txt
clean-webpack-plugin: dry public/main.js.map

Environment

Run: npx envinfo --system --binaries --npmPackages clean-webpack-plugin,webpack

System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
    Memory: 999.45 MB / 8.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.1.0 - /usr/local/bin/node
    npm: 6.14.4 - /usr/local/bin/npm
  npmPackages:
    clean-webpack-plugin: ^3.0.0 => 3.0.0 
    webpack: ^5.22.0 => 5.22.0 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant