Skip to content

Commit

Permalink
删除fontmin-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ZreXoc committed Mar 19, 2022
1 parent 4a7ca4e commit f9cb25b
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 108 deletions.
11 changes: 6 additions & 5 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const { GitRevisionPlugin } = require('git-revision-webpack-plugin');
const FontminPlugin = require('fontmin-webpack');

const path = require('path');

Expand All @@ -17,8 +16,13 @@ const pagePlugins = [
filename: 'index.html',
chunks: ['index'],
}),
new HtmlWebpackPlugin({
template: resolveSrc('template.html'),
title: '关于我们 - PhiCommunity',
filename: 'aboutUs/index.html',
chunks: ['aboutUs'],
}),
...[
'aboutUs',
'cacheControl',
'chapterSelect',
'LevelOver',
Expand Down Expand Up @@ -93,9 +97,6 @@ module.exports = {
new webpack.DefinePlugin({
$VERSION: JSON.stringify(gitRevisionPlugin.version()),
}),
new FontminPlugin({
autodetect: true
}),
new MiniCssExtractPlugin({
filename: 'css/[name].[contenthash].css',
}),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.6.0",
"file-loader": "^6.2.0",
"fontmin-webpack": "^3.2.0",
"git-revision-webpack-plugin": "^5.0.0",
"html-loader": "^3.1.0",
"html-webpack-plugin": "^5.5.0",
Expand All @@ -39,6 +38,7 @@
"workbox-webpack-plugin": "^6.5.1"
},
"dependencies": {
"dom-element-factory": "^1.5.0",
"oggmented": "^1.0.1",
"stackblur-canvas": "^2.5.0",
"workbox-core": "^6.5.1",
Expand Down
Loading

0 comments on commit f9cb25b

Please sign in to comment.