diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-01-20 17:23:08 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-03-15 08:00:43 +0300 |
commit | 07bb0a94e04a62097af5b72e4a891b63bcb1e345 (patch) | |
tree | 429ca37df456f83d985692a1ba61625d23611890 | |
parent | f27f4448313ebf9beb31fd327823a011156c436c (diff) |
Fix purgecss command
We need to pass the JS files too, otherwise purgecss cannot keep any selectors handled in JS.
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 0418557..5649830 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "css-compile": "node-sass --include-path node_modules --output-style compressed --source-map true --source-map-contents true --precision 6 scss -o assets/css/", "css-lint": "stylelint scss/", "css-prefix": "postcss --replace assets/css/starter.css --use autoprefixer --map", - "css-purge": "purgecss --css assets/css/starter.css --content index.html --output assets/css/", + "css-purge": "purgecss --keyframes --css assets/css/starter.css --content index.html \"node_modules/bootstrap/js/dist/{util,modal}.js\" --output assets/css/", "css": "npm-run-all css-compile css-prefix", "server": "sirv --port 3000", "start": "npm-run-all --parallel watch server", |