hynky HF staff commited on
Commit
01fd83e
β€’
1 Parent(s): 9f13c43
dist/bundle.js.gz ADDED
Binary file (429 kB). View file
 
dist/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!doctype html><head><meta name="viewport" content="width=device-width,initial-scale=1"><meta charset="utf8"><base target="_blank"><title>FineWeb: decanting the web for the finest text data at scale</title><link rel="stylesheet" href="style.css"><style>/* ****************************************
2
  * TOC
3
  ******************************************/
4
  @media (max-width: 1199px) {
@@ -98,7 +98,7 @@
98
  d-contents nav > div > a:hover,
99
  d-contents nav > ul > li > a:hover {
100
  text-decoration: none;
101
- }</style><script defer="defer" src="bundle.js"></script></head><body><d-front-matter><script id="distill-front-matter" type="text/json">{
102
  "title": "🍷 FineWeb: decanting the web for the finest text data at scale",
103
  "description": "This blog covers a discussion on processing and evaluating data quality at scale, the 🍷 FineWeb recipe (listing and explaining all of our design choices), and the process followed to create πŸ“š FineWeb-Edu.",
104
  "published": "May 28, 2024",
 
1
+ <!doctype html><head><link rel="stylesheet" href="style.css"><meta name="viewport" content="width=device-width,initial-scale=1"><meta charset="utf8"><base target="_blank"><title>FineWeb: decanting the web for the finest text data at scale</title><style>/* ****************************************
2
  * TOC
3
  ******************************************/
4
  @media (max-width: 1199px) {
 
98
  d-contents nav > div > a:hover,
99
  d-contents nav > ul > li > a:hover {
100
  text-decoration: none;
101
+ }</style><script defer="defer" src="bundle.js.gz"></script></head><body><d-front-matter><script id="distill-front-matter" type="text/json">{
102
  "title": "🍷 FineWeb: decanting the web for the finest text data at scale",
103
  "description": "This blog covers a discussion on processing and evaluating data quality at scale, the 🍷 FineWeb recipe (listing and explaining all of our design choices), and the process followed to create πŸ“š FineWeb-Edu.",
104
  "published": "May 28, 2024",
package-lock.json ADDED
The diff for this file is too large to render. See raw diff
 
package.json CHANGED
@@ -18,8 +18,10 @@
18
  "@babel/preset-env": "^7.24.6",
19
  "babel-loader": "^9.1.3",
20
  "clean-webpack-plugin": "^4.0.0",
 
21
  "copy-webpack-plugin": "^12.0.2",
22
  "css-loader": "^7.1.2",
 
23
  "html-webpack-plugin": "^5.6.0",
24
  "style-loader": "^4.0.0",
25
  "webpack": "^5.91.0",
 
18
  "@babel/preset-env": "^7.24.6",
19
  "babel-loader": "^9.1.3",
20
  "clean-webpack-plugin": "^4.0.0",
21
+ "compression-webpack-plugin": "^11.1.0",
22
  "copy-webpack-plugin": "^12.0.2",
23
  "css-loader": "^7.1.2",
24
+ "html-webpack-change-assets-extension-plugin": "^1.3.1",
25
  "html-webpack-plugin": "^5.6.0",
26
  "style-loader": "^4.0.0",
27
  "webpack": "^5.91.0",
src/index.html CHANGED
@@ -1,12 +1,11 @@
1
  <!doctype html>
2
 
3
  <head>
4
- <!-- <link rel="stylesheet" href="style.css"> -->
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
  <meta charset="utf8">
7
  <base target="_blank">
8
  <title>FineWeb: decanting the web for the finest text data at scale</title>
9
- <link rel="stylesheet" href="style.css">
10
  <style>
11
 
12
  /* ****************************************
 
1
  <!doctype html>
2
 
3
  <head>
4
+ <link rel="stylesheet" href="style.css">
5
  <meta name="viewport" content="width=device-width, initial-scale=1">
6
  <meta charset="utf8">
7
  <base target="_blank">
8
  <title>FineWeb: decanting the web for the finest text data at scale</title>
 
9
  <style>
10
 
11
  /* ****************************************
webpack.config.js CHANGED
@@ -2,7 +2,8 @@ const path = require("path");
2
  const { CleanWebpackPlugin } = require("clean-webpack-plugin");
3
  const CopyPlugin = require("copy-webpack-plugin");
4
  const HtmlWebpackPlugin = require("html-webpack-plugin");
5
- const ChangeDataColors = require("./changeDataColors.js");
 
6
 
7
  const COLOR_KEYS = ["color", "bgColor", "fillcolor"];
8
 
@@ -60,8 +61,12 @@ module.exports = {
60
  new CleanWebpackPlugin(),
61
  new HtmlWebpackPlugin({
62
  template: "./src/index.html", // Path to your source template
63
- filename: "index.html", // Optional: specify a filename (defaults to index.html)
64
  }),
 
 
 
 
65
  new CopyPlugin({
66
  patterns: [
67
  {
@@ -82,3 +87,5 @@ module.exports = {
82
  },
83
  mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
84
  };
 
 
 
2
  const { CleanWebpackPlugin } = require("clean-webpack-plugin");
3
  const CopyPlugin = require("copy-webpack-plugin");
4
  const HtmlWebpackPlugin = require("html-webpack-plugin");
5
+ const CompressionPlugin = require("compression-webpack-plugin");
6
+ const HtmlWebpackChangeAssetsExtensionPlugin = require("html-webpack-change-assets-extension-plugin");
7
 
8
  const COLOR_KEYS = ["color", "bgColor", "fillcolor"];
9
 
 
61
  new CleanWebpackPlugin(),
62
  new HtmlWebpackPlugin({
63
  template: "./src/index.html", // Path to your source template
64
+ jsExtension: ".gz"
65
  }),
66
+ new CompressionPlugin({
67
+ test: /\.(js|mjs)(\?.*)?$/i,
68
+ }),
69
+ new HtmlWebpackChangeAssetsExtensionPlugin(),
70
  new CopyPlugin({
71
  patterns: [
72
  {
 
87
  },
88
  mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
89
  };
90
+
91
+ console.log(process.env.NODE_ENV)