Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix(ui): let PurgeCSS see class names used in .ts files

Matt Roberts1fc851ff1b9f
diff --git a/webpack.config.js b/webpack.config.js
index b6a4eaeb2..739026314 100755
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -36,7 +36,7 @@ const plugins = [
if (isProduction) {
plugins.push(
new PurgeCSSPlugin({
- paths: [...glob.sync(`./public/**/*.{html,tsx}`, { nodir: true })],
+ paths: [...glob.sync(`./public/**/*.{html,ts,tsx}`, { nodir: true })],
defaultExtractor: (content) => content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [],
safelist: [/--/, /__/, /data-/, /tiptap/],
})