fix(build): don't purge used styles
Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
parent
bca77b0ff6
commit
ae8cee8ccf
@ -13,7 +13,7 @@ fs.copySync("static/", "../priv/static/");
|
||||
console.log("[build.js] [info] Copying static files from static/");
|
||||
|
||||
if (!productionBuild) {
|
||||
console.log("[build.js] [info] Starting to watching assets for changes");
|
||||
console.log("[build.js] [info] Starting to watch assets for changes");
|
||||
} else {
|
||||
console.log("[build.js] [info] Building assets in production mode");
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ module.exports = {
|
||||
"../lib/**/*.ex",
|
||||
"../lib/**/*.leex",
|
||||
"../lib/**/*.eex",
|
||||
"../lib/**/*.heex",
|
||||
"./js/**/*.js",
|
||||
],
|
||||
darkMode: false, // or 'media' or 'class'
|
||||
|
@ -9,7 +9,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
<%= if @extension == "md" do%>
|
||||
<div class="break-word px-6 py-4 h-full w-full markdown overflow-y-auto"><%= raw Earmark.as_html!(@paste.content, escape: true, gfm_tables: true) %></div>
|
||||
<div class="break-word px-6 py-4 h-full w-full markdown overflow-y-auto"><%= raw Earmark.as_html!(@paste.content, escape: true, gfm_tables: true) |> HtmlSanitizeEx.html5 %></div>
|
||||
<% else %>
|
||||
<code class="break-word px-6 py-4 h-full w-full overflow-y-auto"><%= raw Ketbin.Utils.Syntax.highlight_text(@paste.content, @extension) |> HtmlSanitizeEx.html5 %></code>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user