Skip to content

Commit

Permalink
🐛 FIX: Tailwind CSS purge
Browse files Browse the repository at this point in the history
  • Loading branch information
luangjokaj committed Dec 5, 2020
1 parent 7feea85 commit 5d451bc
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

# Changelog

**v0.2.9-7**
- 🐛 FIX: Run `stylesDev` when template files are changes. Solves Tailwind CSS purge.

**v0.2.9-6**
- 📦 NEW: Add support for Tailwind CSS.
- 👌 IMPROVE: Disable nginx cache for dev server.
- 👌 IMPROVE: Disable Nginx cache for dev server.

**v0.2.9-4**
- 🐛 FIX: Missing welcome.html
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function devServer(done) {
watch('./src/assets/js/**', series(footerScriptsDev, Reload));
watch('./src/assets/img/**', series(copyImagesDev, Reload));
watch('./src/assets/fonts/**', series(copyFontsDev, Reload));
watch('./src/theme/**', series(copyThemeDev, Reload));
watch('./src/theme/**', series(copyThemeDev, stylesDev, Reload));
watch('./src/plugins/**', series(pluginsDev, Reload));
}

Expand Down
3 changes: 2 additions & 1 deletion installer/modules/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const download = require('download');
const handleError = require('./handleError.js');
const clearConsole = require('./clearConsole.js');
const printNextSteps = require('./printNextSteps.js');
const version = require('../package.json').version;

module.exports = async () => {
// Init.
Expand All @@ -26,7 +27,7 @@ module.exports = async () => {
upstreamUrl = `https://raw.githubusercontent.com/${process.env.WPFY_GH_REPO}/${refname}`;
} else {
upstreamUrl =
'https://raw.githubusercontent.com/luangjokaj/wordpressify/v0.2.9-6';
`https://raw.githubusercontent.com/luangjokaj/wordpressify/v${version}`;
}

// Files.
Expand Down
2 changes: 1 addition & 1 deletion installer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordpressify",
"version": "0.2.9-6",
"version": "0.2.9-7",
"description": "A build system designed to automate your WordPress development workflow.",
"keywords": [
"babel",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wordpressify",
"version": "0.2.9-6",
"version": "0.2.9-7",
"description": "A build system designed to automate your WordPress development workflow.",
"keywords": [
"babel",
Expand Down
26 changes: 12 additions & 14 deletions src/assets/css/variables.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
@import "./variables";
@custom-media --screen-xs (min-width: 0);
@custom-media --screen-sm (min-width: 576px);
@custom-media --screen-md (min-width: 768px);
@custom-media --screen-lg (min-width: 992px);
@custom-media --screen-xl (min-width: 1200px);
@custom-media --screen-xxl (min-width: 1440px);
@custom-media --screen-xxxl (min-width: 1920px);

.container {
max-width: var(--max-width);
margin: auto;
padding-right: var(--margin-container-mobile);
padding-left: var(--margin-container-mobile);
:root {

@media (--screen-lg) {
padding-right: var(--margin-container-desktop);
padding-left: var(--margin-container-desktop);
}

@media (--screen-xxxl) {
max-width: 1704px;
}
/* Sample variables ------------------------------------------- */
--max-width: 1440px;
--margin-container-mobile: 20px;
--margin-container-desktop: 20px;
}

0 comments on commit 5d451bc

Please sign in to comment.