Updating webpack for font
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user