Skip to content

Commit

Permalink
restore clean-webpack-plugin
Browse files Browse the repository at this point in the history
This should be revisited with a review of the production workflow.

clean-webpack-plugin has old, outdated dependencies and does the simple
task of cleaning build/ and docs/.  Production workflows should start
with those dirs empty and this plugin should be removed.  Development
users can wipe rm -rf build/* as needed, without excess plugin
dependencies.
  • Loading branch information
gstrauss committed Dec 8, 2024
1 parent 01ebd66 commit 4634430
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const constants = require('../src/js/constants.js');
const configs = require('../src/js/configs.js');

const CleanWebpackPlugin = require('clean-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const exec = require('child_process').spawnSync;
const HtmlWebpackPlugin = require('html-webpack-plugin');
Expand All @@ -17,6 +17,7 @@ const revision = () => {

// the many plugins used
const plugins = [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({
constants,
configs,
Expand Down

0 comments on commit 4634430

Please sign in to comment.