Skip to content

Commit

Permalink
fix: remove deprecated script-ext-html-webpack-plugin
Browse files Browse the repository at this point in the history
Fixes #9714
  • Loading branch information
platosha committed Jan 21, 2021
1 parent ef14999 commit c06d15f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 42 deletions.
7 changes: 7 additions & 0 deletions flow-server/form/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "@vaadin/form",
"license": "UNLICENSED",
"main": "index",
"version": "1.0.0",
"sideEffects": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ static Map<String, String> getDefaultDependencies() {
static Map<String, String> getDefaultDevDependencies() {
Map<String, String> defaults = new HashMap<>();

defaults.put("html-webpack-plugin", "3.2.0");
defaults.put("script-ext-html-webpack-plugin", "2.1.4");
defaults.put("html-webpack-plugin", "4.5.1");
defaults.put("typescript", "4.0.3");
defaults.put("ts-loader", "8.0.12");

Expand Down
5 changes: 1 addition & 4 deletions flow-server/src/main/resources/webpack.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
const fs = require('fs');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const { InjectManifest } = require('workbox-webpack-plugin');
const { DefinePlugin } = require('webpack');
Expand Down Expand Up @@ -322,11 +321,9 @@ module.exports = {
template: clientSideIndexHTML,
filename: indexHtmlPath,
inject: 'head',
scriptLoading: 'defer',
chunks: ['bundle', ...(devMode ? ['devmodeGizmo'] : [])]
}),
useClientSideIndexFileForBootstrapping && new ScriptExtHtmlWebpackPlugin({
defaultAttribute: 'defer'
}),

// Service worker for offline
pwaEnabled && serviceWorkerPlugin,
Expand Down
36 changes: 0 additions & 36 deletions flow/pom.xml

This file was deleted.

0 comments on commit c06d15f

Please sign in to comment.