Skip to content

Commit

Permalink
minify CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
benabraham committed Jul 25, 2023
1 parent a454169 commit f11fdc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ To build everything once for production
```shell
npm run build
```
_note: `removeUnusedCss` will throw “Error: Could not load script:…” but it doesn’t make stop it from working. Just ignore it.

### Admin & Wagtail
In case you want to access admin page, either Django or Wagtail one, you need to create a superuser and log in with its credentials:
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const processCss = series(cleanupCss, sassCompile);
export const develop = series(cleanupAll, copyStatic, sassCompile, parallel(runServer, startBrowsersync, watchFiles));

// build everything for production
export const build = series(cleanupAll, copyStatic, sassCompile /*removeUnusedCss*/); // todo: make uncss work
export const build = series(cleanupAll, copyStatic, sassCompile, removeUnusedCss);

// the default task runs when you run just `gulp`
export default build;

0 comments on commit f11fdc1

Please sign in to comment.