Bump Cockpit API to 288.1 + esbuild plugin updates

Preparation for moving to esbuild.
This commit is contained in:
Martin Pitt 2023-03-27 13:37:22 +02:00 committed by Martin Pitt
parent a8faf6a43a
commit 75b3170765
2 changed files with 5 additions and 5 deletions

View file

@ -8,8 +8,8 @@ import CompressionPlugin from "compression-webpack-plugin";
import ESLintPlugin from 'eslint-webpack-plugin';
import StylelintPlugin from 'stylelint-webpack-plugin';
import CockpitPoPlugin from "./pkg/lib/cockpit-po-plugin.js";
import CockpitRsyncPlugin from "./pkg/lib/cockpit-rsync-plugin.js";
import { CockpitPoWebpackPlugin } from './pkg/lib/cockpit-po-plugin.js';
import { CockpitRsyncWebpackPlugin } from "./pkg/lib/cockpit-rsync-plugin.js";
/* A standard nodejs and webpack pattern */
const production = process.env.NODE_ENV === 'production';
@ -32,8 +32,8 @@ const copy_files = [
const plugins = [
new copy({ patterns: copy_files }),
new extract({ filename: "[name].css" }),
new CockpitPoPlugin(),
new CockpitRsyncPlugin({ dest: packageJson.name }),
new CockpitPoWebpackPlugin(),
new CockpitRsyncWebpackPlugin({ dest: packageJson.name }),
];
if (eslint) {