Updating webpack for font

This commit is contained in:
2020-05-31 05:22:10 +01:00
parent 16a1fe41fd
commit c10b7b0026
6 changed files with 33 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ const TerserPlugin = require("terser-webpack-plugin");
const CssMinimizer = require("optimize-css-assets-webpack-plugin");
const PurgeCssPlugin = require("purgecss-webpack-plugin");
const glob = require("glob");
const path = require("path")
const path = require("path");
module.exports = merge(common, {
mode: "production",
@@ -14,7 +14,7 @@ module.exports = merge(common, {
output: {
filename: "[name].[contenthash].min.js",
chunkFilename: "[id].[name].[contenthash].min.js",
publicPath: "dist/",
publicPath: "/dist/",
},
module: {
rules: [
@@ -28,6 +28,10 @@ module.exports = merge(common, {
"sass-loader",
],
},
{
test: /\.(ttf|otf)$/,
use: ["file-loader"],
},
],
},
plugins: [