Skip to content

Commit 8b2722f

Browse files
committed
webpack: use mini-css-extract-plugin, removed deprecated extract-text-webpack-plugin
Can filename support function type ? panr#67 webpack-contrib/mini-css-extract-plugin#67 this not work: webpack-contrib/mini-css-extract-plugin#45 (comment) Extracting CSS based on entry also not work webpack-contrib/mini-css-extract-plugin#220
1 parent 5a2ad4f commit 8b2722f

File tree

4 files changed

+251
-175
lines changed

4 files changed

+251
-175
lines changed

layouts/partials/head.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
{{ template "_internal/google_analytics.html" . }}
88

99
<!-- Theme CSS -->
10-
<link rel="stylesheet" href="{{ "assets/style.css" | absURL }}?{{ resources.Get "assets/style.css" | md5}}">
10+
<link rel="stylesheet" href="{{ "assets/style.min.css" | absURL }}?{{ resources.Get "assets/style.min.css" | md5}}">
1111
{{ if (ne $.Site.Params.ThemeColor "orange") }}
12-
<link rel="stylesheet" href="{{ (printf "assets/%s.css" $.Site.Params.ThemeColor) | absURL }}">
12+
<link rel="stylesheet" href="{{ (printf "assets/%s.min.css" $.Site.Params.ThemeColor) | absURL }}">
1313
{{ end }}
1414

15-
<!-- Custom CSS to override theme properties (/static/style.css) -->
16-
{{ if (fileExists "static/style.css") -}}
17-
<link rel="stylesheet" href="{{ "style.css" | absURL }}">
15+
<!-- Custom CSS to override theme properties (/static/style.min.css) -->
16+
{{ if (fileExists "static/style.min.css") -}}
17+
<link rel="stylesheet" href="{{ "style.min.css" | absURL }}">
1818
{{- end }}
1919

2020
<!-- Icons -->

0 commit comments

Comments
 (0)