Skip to content

Commit 4382d46

Browse files
committed
removed critters-webpack-plugin
1 parent 50f64b1 commit 4382d46

File tree

4 files changed

+21
-921
lines changed

4 files changed

+21
-921
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
[UNRELEASED]
44

5+
- `Seed` updated to `0.6.0`.
56
- Delete unnecessary `optimize-wasm.js` script.
67
- [BREAKING] `wasm-pack` > `0.9.0` required.
7-
- `Seed` updated to `0.6.0`.
88
- Minor `lib.rs` changes - removed `Clone` constraint on `Msg` and `prerendered` variable is replaced with a `Model`'s property.
99
- Added `wasm_bindgen_test_configure!(run_in_browser);` into `test.rs`.
1010
- Disabled performance hints in `webpack.config.js`.
11+
- Removed `critters-webpack-plugin`.
1112

1213
[0.4.1]
1314

configs/webpack.config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
66
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
77
const CopyWebpackPlugin = require("copy-webpack-plugin");
88
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
9-
const Critters = require('critters-webpack-plugin');
109
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
1110

1211
module.exports = (env, argv) => {
@@ -50,12 +49,6 @@ module.exports = (env, argv) => {
5049
new HtmlWebpackPlugin({
5150
template: path.resolve(__dirname, "../entries/index.hbs")
5251
}),
53-
// Inline the critical part of styles, preload remainder.
54-
new Critters({
55-
logLevel: "warn",
56-
// https://github.com/GoogleChromeLabs/critters/issues/34
57-
pruneSource: false,
58-
}),
5952
// Compile Rust.
6053
new WasmPackPlugin({
6154
crateDirectory: path.resolve(__dirname, "../crate"),

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"clean-webpack-plugin": "^3.0.0",
2525
"concurrently": "^5.0.2",
2626
"copy-webpack-plugin": "^5.1.1",
27-
"critters-webpack-plugin": "^2.5.0",
2827
"css-loader": "^3.4.2",
2928
"file-loader": "^5.0.2",
3029
"find": "^0.3.0",

0 commit comments

Comments
 (0)