Skip to content

Commit d3eca29

Browse files
ci: added node.js 17 (#130)
1 parent 53e1f2a commit d3eca29

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
matrix:
5858
os: [ubuntu-latest, windows-latest, macos-latest]
59-
node-version: [12.x, 14.x, 16.x]
59+
node-version: [12.x, 14.x, 16.x, 17.x]
6060
webpack-version: [latest]
6161

6262
runs-on: ${{ matrix.os }}

test/CssMinimizerPlugin.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import path from "path";
2-
import crypto from "crypto";
32

43
import { SourceMapConsumer } from "source-map";
54
import MiniCssExtractPlugin from "mini-css-extract-plugin";
@@ -456,8 +455,8 @@ describe("CssMinimizerPlugin", () => {
456455
for (const assetName of Object.keys(assets)) {
457456
const [, webpackHash] = assetName.match(/^.+?\.(.+?)\..+$/);
458457
const { hashDigestLength, hashDigest, hashFunction } = output;
459-
const cryptoHash = crypto
460-
.createHash(hashFunction)
458+
const cryptoHash = require("webpack")
459+
.util.createHash(hashFunction)
461460
.update(readAsset(assetName, compiler, stats))
462461
.digest(hashDigest)
463462
.slice(0, hashDigestLength);

0 commit comments

Comments
 (0)