diff --git a/package.json b/package.json index d89aa1452..76521b017 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,6 @@ "xml-js": "^1.6.11" }, "devDependencies": { - "@fullhuman/postcss-purgecss": "^2.1.0", - "@fullhuman/vue-cli-plugin-purgecss": "~2.2.0", "@types/chai": "^4.1.0", "@types/chart.js": "^2.9.28", "@types/fs-extra": "^8.0.0", @@ -76,11 +74,6 @@ "vue-cli-plugin-electron-builder": "^1.4.6", "vue-template-compiler": "^2.6.12" }, - "postcss": { - "plugins": { - "autoprefixer": {} - } - }, "browserslist": [ "> 1%", "last 2 versions" diff --git a/postcss.config.js b/postcss.config.js index ba414c28a..90d9fffcb 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,15 +1,5 @@ -const IN_PRODUCTION = process.env.NODE_ENV === 'production' - module.exports = { - plugins: [ - IN_PRODUCTION && require('@fullhuman/postcss-purgecss')({ - content: [`./public/**/*.html`, `./src/**/*.vue`, `./src/**/*.scss`], - defaultExtractor (content) { - const contentWithoutStyleBlocks = content.replace(//gi, '') - return contentWithoutStyleBlocks.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || [] - }, - whitelist: [], - whitelistPatterns: [ /-(leave|enter|appear)(|-(to|from|active))$/, /^(?!(|.*?:)cursor-move).+-move$/, /^router-link(|-exact)-active$/, /data-v-.*/ ], - }) - ], + plugins: { + autoprefixer: {}, + }, } diff --git a/yarn.lock b/yarn.lock index 8e6a5fb97..8cd394620 100644 --- a/yarn.lock +++ b/yarn.lock @@ -725,19 +725,6 @@ ajv "^6.1.0" ajv-keywords "^3.1.0" -"@fullhuman/postcss-purgecss@^2.1.0": - version "2.3.0" - resolved "https://registry.npm.taobao.org/@fullhuman/postcss-purgecss/download/@fullhuman/postcss-purgecss-2.3.0.tgz#50a954757ec78696615d3e118e3fee2d9291882e" - integrity sha1-UKlUdX7HhpZhXT4Rjj/uLZKRiC4= - dependencies: - postcss "7.0.32" - purgecss "^2.3.0" - -"@fullhuman/vue-cli-plugin-purgecss@~2.2.0": - version "2.2.0" - resolved "https://registry.npm.taobao.org/@fullhuman/vue-cli-plugin-purgecss/download/@fullhuman/vue-cli-plugin-purgecss-2.2.0.tgz#fba98dd587d1722e75bc1285cf9de7fc65fe7809" - integrity sha1-+6mN1YfRci51vBKFz53n/GX+eAk= - "@hapi/address@2.x.x": version "2.1.4" resolved "https://registry.npm.taobao.org/@hapi/address/download/@hapi/address-2.1.4.tgz?cache=0&sync_timestamp=1603524710662&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40hapi%2Faddress%2Fdownload%2F%40hapi%2Faddress-2.1.4.tgz#5d67ed43f3fd41a69d4b9ff7b56e7c0d1d0a81e5" @@ -2942,11 +2929,6 @@ commander@^2.12.1, commander@^2.18.0, commander@^2.20.0: resolved "https://registry.npm.taobao.org/commander/download/commander-2.20.3.tgz?cache=0&sync_timestamp=1603599636161&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha1-/UhehMA+tIgcIHIrpIA16FMa6zM= -commander@^5.0.0: - version "5.1.0" - resolved "https://registry.npm.taobao.org/commander/download/commander-5.1.0.tgz?cache=0&sync_timestamp=1603599636161&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae" - integrity sha1-Rqu9FlL44Fm92u+Zu9yyrZzxea4= - commander@^6.1.0, commander@^6.2.0: version "6.2.0" resolved "https://registry.npm.taobao.org/commander/download/commander-6.2.0.tgz?cache=0&sync_timestamp=1603599636161&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-6.2.0.tgz#b990bfb8ac030aedc6d11bc04d1488ffef56db75" @@ -8698,15 +8680,6 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0: resolved "https://registry.npm.taobao.org/postcss-value-parser/download/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb" integrity sha1-RD9qIM7WSBor2k+oUypuVdeJoss= -postcss@7.0.32: - version "7.0.32" - resolved "https://registry.npm.taobao.org/postcss/download/postcss-7.0.32.tgz?cache=0&sync_timestamp=1604592088348&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss%2Fdownload%2Fpostcss-7.0.32.tgz#4310d6ee347053da3433db2be492883d62cec59d" - integrity sha1-QxDW7jRwU9o0M9sr5JKIPWLOxZ0= - dependencies: - chalk "^2.4.2" - source-map "^0.6.1" - supports-color "^6.1.0" - postcss@^6.0.1, postcss@^6.0.23: version "6.0.23" resolved "https://registry.npm.taobao.org/postcss/download/postcss-6.0.23.tgz?cache=0&sync_timestamp=1604592088348&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss%2Fdownload%2Fpostcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324" @@ -8881,16 +8854,6 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.npm.taobao.org/punycode/download/punycode-2.1.1.tgz?cache=0&sync_timestamp=1589682803838&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpunycode%2Fdownload%2Fpunycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha1-tYsBCsQMIsVldhbI0sLALHv0eew= -purgecss@^2.3.0: - version "2.3.0" - resolved "https://registry.npm.taobao.org/purgecss/download/purgecss-2.3.0.tgz#5327587abf5795e6541517af8b190a6fb5488bb3" - integrity sha1-UydYer9XleZUFRevixkKb7VIi7M= - dependencies: - commander "^5.0.0" - glob "^7.0.0" - postcss "7.0.32" - postcss-selector-parser "^6.0.2" - q@^1.1.2, q@~1.5.0: version "1.5.1" resolved "https://registry.npm.taobao.org/q/download/q-1.5.1.tgz?cache=0&sync_timestamp=1589682817412&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fq%2Fdownload%2Fq-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"